From patchwork Thu Aug 29 19:53:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 823535 Delivered-To: patch@linaro.org Received: by 2002:a5d:48c1:0:b0:367:895a:4699 with SMTP id p1csp460650wrs; Thu, 29 Aug 2024 12:54:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUY8CrqDH2qJHVTlS0is9QyMFVWlaFGwi9gbY4bKH7d4i+a/4LSqEpJVMZKShijyGPIc0S64w==@linaro.org X-Google-Smtp-Source: AGHT+IHRUY2xNGs1ZHm/PMQZVmlLvQM6PbPx4agJC4SptmzSA8Pc0E+3WtzhC5p7fQCOVuGSb6vh X-Received: by 2002:a05:622a:6084:b0:445:2e9:330e with SMTP id d75a77b69052e-4567f5a57dcmr34038261cf.37.1724961267955; Thu, 29 Aug 2024 12:54:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1724961267; cv=pass; d=google.com; s=arc-20160816; b=qGLBNWcuQpA/SJLsXiLg0TRrthBons2R/CT3NT+rZZQ3BbIKj5FrYz7LGmdLSZ8sFC YQx2RzlFCga8ZmFDfMq3+kXQJTLnQqudbQ8S6tTMVs/E5wDCDWYRz/RNy8tQ36p9qyii iEkwatwlhhyYpShBH9vo17IPwXy32shzkBnifa0rSvAbMxznyPASnBXnI3o1YNB0F5OC RwQnhc4nUAbunjGlq7pZqSiHEhwAqZ1p8DyU4zy0B32rAxc0z3PIMLqu+5FonOIIFREt S+TwFvsspxPh9sHK04OsByRv+KFvkhMQ1tZfwRPvz0H7p6WQc9fxtIo5ZwwHvM4HlHBi lr6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=PujsWWYsY2olFdDYWljj9xL75sQ6K/2kNF7vcpgv58g=; fh=dHLBnA+MhGtNtN2B2JMAELi4oD+gmgMg7DL8H0jYbkI=; b=MRgmNxL3nSpst1LsjDUFtnFSxQioN/ovsjC0meWvxkQMXA5ntkyE6qOi0aU6dQhfnd 9hkF0FFr5gEDi+vENq2DX1n+TwPjvUvKyJ5BRd+VABMSfnFLKOyQfMuPzM7u0PHPeLAI jDmzNv/2yMhX5V2LUFCrRkSxz1Yd4+OkDu47spBm397+EjsKYhceOIICYLmbEWnOl1ao +SDZMOb9Rqgq5jmiQmxOLVsfeSRJvJ/E9pO4QC7D/y10wGEa778b8EDrKr+zW3j9bGJO 5GfanXgDZL2FZxNhbj0OmgBY3cgJrT2VdB7bZqjmA7HC3HrV2Gt36pJA70gcLyW1Zr4k 9yYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJl+sPub; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-45682dbdb6csi21137711cf.573.2024.08.29.12.54.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 12:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJl+sPub; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 549323850212 for ; Thu, 29 Aug 2024 19:54:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id EF344386102B for ; Thu, 29 Aug 2024 19:53:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF344386102B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF344386102B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1033 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724961229; cv=none; b=oRXsbHH16eJJGQve9zcVok3NHLwPvGLQWr8vAxlYG98GO6lt/++SlNL9JlKa8Ry3h0O3/f/+QFxjT8xiT7iza96U4TeMXiUqhIv/s81MEojhCY+UDohJMJ70txlXcwpvFkfMdqtTLwkHckOhNeZJo3X8DVnDTibt1XOYt6yzXHQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724961229; c=relaxed/simple; bh=uDqjaV0x5cWRujfkHg2hFlzYs8RuMpsua5pmUJl6ybk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=s7CWCldgK7mllAvpQU+5mFymBrdEdnUdgN1yq4IYJSOFdYjHI5tyeFP/6KsYtRjikeQFc81bQgN3sJvgCq80/nb2jCx5AVui5HBqEzRavVdbpYHlz2uQRXWV6XERo3gHbqGAXzxrngrly9NJvBRSmW1nO6lALdjzeoXzGPUYh6U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2d3c99033d6so814297a91.0 for ; Thu, 29 Aug 2024 12:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724961225; x=1725566025; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=PujsWWYsY2olFdDYWljj9xL75sQ6K/2kNF7vcpgv58g=; b=RJl+sPub/FY+UmrDG6YHSo+PJ60K60Si29iK5P2SGGz7aW9hx7I6RAXSKbBB8MwLNU Uu9G2GedklTqLw97q0nK6VFSj0lKvXnJjKiPFbE96gORjcuH6Hz0ZSBrbmyOOhVG3bU4 biNoMKw5Dt08fsvTxKsDT5a08jYldrp5TnRFqSW//k9GLFDP483GcMp+DA66aeBV1RiA jqCsdcNp+xCkBzJJssy9EXAFLeUWjBiv5OZZF+3EZxPIe1cWht4O2d4Jvm3CmXQojI76 vMeSdBLALOWO4I7FNAX5E4w0Wx5R0z2J0QuBIDOFg11JXmgFmdJpaecH8ShsTQe4yHgx OiJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724961225; x=1725566025; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PujsWWYsY2olFdDYWljj9xL75sQ6K/2kNF7vcpgv58g=; b=mbNR2TvicOHr9ATipkS8adPBhVNNTO7Lz2XwhU5QFGYIZ48XB+WDaIVpeethci4/ni t6QV4D1kIxDHH1Mk1umbR6CTAl7SIEyb6gRrmKPeHKiB74axckG/vf8ARHa3179f5ZC0 7ReBRLQp6Bq42eogqR7ItgnDzvF/YioKnSjXya2bXyBqBGhNjE6ru+X0cQoV4KTCrmdQ S3j4eidgAaEq3JpcAYwj5xFEky5HvRAki+o/qFSBQyRM5cMcATJhE3RhyzgJ77eTyd7R dZNlI1ies67vz709Fn5dQ6V+sFEYo2XVemWQYUOAZPckDGmkrFbetnL2RukZJN4ZvDg7 fYzw== X-Gm-Message-State: AOJu0YxVINHSNOw2PJa9UqSuhTSdr0/qnM7TOZ4anSqIGUJFA9FUGlJ9 Vkx2OkJSNyaHf8wwJetFR2P9k/1Ig12l9sPt6c3oInLgLBsdGheg4NXCJD+mgUYp06x0Kv+InVY Y X-Received: by 2002:a17:90b:4b07:b0:2c9:6d8:d823 with SMTP id 98e67ed59e1d1-2d85617d48bmr5006040a91.1.1724961225192; Thu, 29 Aug 2024 12:53:45 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:4c2c:4190:b7ef:2928:18cc]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d85b11b7e0sm2135420a91.17.2024.08.29.12.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 12:53:44 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH] linux: mips: Fix syscall_cancell build for __mips_isa_rev >= 6 Date: Thu, 29 Aug 2024 16:53:35 -0300 Message-ID: <20240829195341.1997338-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org Use beqzc instead of bnel. Checked with a mipsisa64r6el-n64-linux-gnu build and some nptl cancellation tests on qemu. --- sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S b/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S index f172041324..cfc0596b6a 100644 --- a/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S +++ b/sysdeps/unix/sysv/linux/mips/mips64/syscall_cancel.S @@ -77,7 +77,11 @@ __syscall_cancel_arch_end: .set noreorder .set nomacro +#if __mips_isa_rev >= 6 + beqzc $7, 1f +#else bnel a3, zero, 1f +#endif SUBU v0, zero, v0 .set macro .set reorder