From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AA0mqf5fxPRSTGDWIFX1HTkr5fABu98KjMk+u2PAwJzrkosl8moDs0865Lvgqnu2HlTNpTHOUvgdFA== 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 Content-Transfer-Encoding: 8bit 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 List-Id: 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 -- 2.38.1