From patchwork Fri Nov 18 04:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 22100 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp771881wrr; Thu, 17 Nov 2022 20:30:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7GPQWGJ8SplCs2Baqw+HMdRgKc6y4ddJY6di+HukUSYDR0xLvh4sna0q1wUQSYNbgDmaBM X-Received: by 2002:a17:906:f81:b0:78d:8dfb:10ad with SMTP id q1-20020a1709060f8100b0078d8dfb10admr4747234ejj.289.1668745821397; Thu, 17 Nov 2022 20:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668745821; cv=none; d=google.com; s=arc-20160816; b=UpYrleep0jXiIXOdLdnZyPlPWUaIMzZHGnKUjqg0tIuYN/6HdyIBtQ7mKMUGKnqiRx HfJP+vhGWLKup9f+Q8OmIyfjpygstEZqvgT1pqkE27SBi7TpLc4o2BZ1ErMAL/1L0wZs FtUtYczBnOEyjl/RAwv7UsEbcGWeqmp5KMj20XvW9d9Oj5uLz2BtmuMicLj2wxF01r88 Ffdd7q8kYxJTyUwDxzrkurjhm69NzmxN/+RGFKWYZCMgk+8z35dPh3iuHG7/DflyC6Px OF3EQ+uyugn3BvwXQwd1FUM7Z2+ClmRiyyrwET4n936vTdDvJkUvT2uHGecPLuGIDW3m M4HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:to:from:cc :content-transfer-encoding:mime-version:message-id:date:subject :dkim-signature:dmarc-filter:delivered-to; bh=sHFXelnsTHRpE/a/ck4dfU9tzcgt/HK2cUQnZxrIrZ0=; b=bDNp10DVnB5eZhP4FuPDGNl8AzF5KfbBgxsLSMt62DJcARK18zfuFYnL1Po67pc48b yzIRrG6IvbOkVN/1FoMhzu2RdinrVillNEVBwbIWSH9+XzrTOqbsJr9uhyzawmVRT+ZM VjMs1unHEEhkxf1BZT7KM+LTjMFOwCPCEnVCpYjlrluXTt1f21pDgKioKcaE0IzwHVel yI7g+tZZnFwfdSQgKoyjZCa9LGrIL3sPbm0WNHvOFc3jB4G/FzU9HFuiGxYg3zHlUeGh 0NrnwP2P/JeLFueIEOvlFAwIDFpgi4/6Ty7cZEVo2sV4DcoixKprSMMSL7digEwxorGT eEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="U/5DZQdF"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p13-20020a05640210cd00b0046272b487cesi1952514edu.331.2022.11.17.20.30.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 20:30:21 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b="U/5DZQdF"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 785A23842312 for ; Fri, 18 Nov 2022 04:29:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by sourceware.org (Postfix) with ESMTPS id 4ED15385223E for ; Fri, 18 Nov 2022 04:29:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4ED15385223E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pj1-x102f.google.com with SMTP id w15-20020a17090a380f00b0021873113cb4so3526315pjb.0 for ; Thu, 17 Nov 2022 20:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:from:to:cc:subject:date:message-id:reply-to; bh=sHFXelnsTHRpE/a/ck4dfU9tzcgt/HK2cUQnZxrIrZ0=; b=U/5DZQdFiy6EdexTIZ/tgrSrsH19HU4QoappjwrkSeKSXxic161aW1Tn9dQCxchHnp G4HAKEIWNUTfwOO7tCMrKryLn5h4aIWXdwWUiC0HyULck82aZEc1lv0sLlNv4Fz1cFqz DuzHHUuITQmB11zwI9IVX/50evsJUfxinVzPhq8DQ0yFKwy4e/iDbDj6yZ3Dqa/KHKFp UzWUfH6Yan62yUcJeF5BjACEsfCp3Psvsx7qm3gqXtfwAsHlz02VLAhYz4VQ2WurZnQe hi9QCTdWYUns1OizxVLF1ToJ+c5dnTSXcQFTNZyk+gUwtJ/S/TbRmwj+u0i00/aHmleP vHUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:message-id:date :subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sHFXelnsTHRpE/a/ck4dfU9tzcgt/HK2cUQnZxrIrZ0=; b=tbUyspigBVo6TYxmQOzDY5AftoSDSAaCfZ0bmHJCS0vybXlDt2btXwNuSz7aU9bjg3 O70FRy4dV3uuiznc3+erb2D4PudsO2+n/1Pz2JadaE38mp5v72DVu+9RiS8SIfhqcbYy /Ek1mxrg/yWyas+0sjUJetV+hL0AHwCjsp4S3WAPAdMsJyn6dfODLo3n+Nfzc7eT/AX4 A1tm9JV6vpiPWu+Qvcsr4wGwvGllMY/aCrCcWhMO0xB2I318JAMZAKvu1+4U/xrFaILZ anoSEiajteZNqum6zPiFLigWi54Sgmbx1B7OE4+3Pn+nWGpmmWrYJcpv5GFHVgB6Cc9X z7Fg== X-Gm-Message-State: ANoB5pnip6W9lSmf1dqtb6/pyHJSAmC0pP9XZfanQfrMJf4KgbMXaOXz Te/Gna4YvWOrmycLcjpxypIbaA== X-Received: by 2002:a17:903:3246:b0:188:f1b4:cf35 with SMTP id ji6-20020a170903324600b00188f1b4cf35mr5318707plb.54.1668745749141; Thu, 17 Nov 2022 20:29:09 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id l6-20020a170903120600b0018157b415dbsm2415256plh.63.2022.11.17.20.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 20:29:08 -0800 (PST) Subject: [PATCH] RISC-V: Note that __builtin_riscv_pause() implies Xgnuzihintpausestate Date: Thu, 17 Nov 2022 20:27:06 -0800 Message-Id: <20221118042706.10725-1-palmer@rivosinc.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Cc: Palmer Dabbelt From: Palmer Dabbelt To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749806818329405643?= X-GMAIL-MSGID: =?utf-8?q?1749806818329405643?= gcc/ChangeLog: * doc/extend.texi (__builtin_riscv_pause): Imply Xgnuzihintpausestate. --- gcc/doc/extend.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index b1dd39e64b8..26f14e61bc8 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -21103,7 +21103,9 @@ Returns the value that is currently set in the @samp{tp} register. @end deftypefn @deftypefn {Built-in Function} void __builtin_riscv_pause (void) -Generates the @code{pause} (hint) machine instruction. +Generates the @code{pause} (hint) machine instruction. This implies the +Xgnuzihintpausestate extension, which redefines the @code{pause} instruction to +change architectural state. @end deftypefn @node RX Built-in Functions