From patchwork Thu Aug 10 02:26:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tsukasa OI X-Patchwork-Id: 133664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp136357vqi; Wed, 9 Aug 2023 19:28:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfBxedU/8VmSbIbJXLJvt9K9R5X058cxtARvv4BEPuQkwc/3HbHUpFgwbGcYfU3ZELARqX X-Received: by 2002:a17:906:51d6:b0:99c:ae54:6654 with SMTP id v22-20020a17090651d600b0099cae546654mr816838ejk.14.1691634481973; Wed, 09 Aug 2023 19:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691634481; cv=none; d=google.com; s=arc-20160816; b=KU+kcEtjiA8mm+bt6PbpqhOmNqaxcA2VbqolbhkMDMcNik1Ec4PewBlrpmOIpME7Mg tC5wfzHW99G/vNnWQpt3KNKwApLXFpvUKTP0u4XhgVI0fz9Ktai60DNXcnIp+QOipdAL yOkt6gM3ffvlBQW8ri0NtLYmckvQhHhT0ptmCfW2ayKkmn5xhaY/3nkDKTDkhJ+HAOWN 3Zlx2RtdgaYgmideYnElNQYN5Id46Br+63QV8r8h+IxKgvjM3Alkv+ljQb+NZG+Bp95a yf3zBxocFEiBEDtOfiWDR3Ei40R7r9ZhVoFi2TnZnwoVHCzH0RckeP3MglrGiqIIiezQ lQuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=JgUZ6PnaL8F9aRheHz37QGH8j/zQQgOdezicNJvDkPY=; fh=+ZIkFo1I6igCs2Jp1h//NIIJ4JZvgs62lnbG3NFOoyY=; b=jaBmRwrvge0BdQB1AIT4uygipUEKvRqR1XR5Vwi7K3RnOkEkJ0InFUyiqB/f4vt812 4Msn22Hs2Gel8onP9a0kFJn7rp5WInXAhEgl1TmDQwKnJGSE0yEqAWLhC2uvZvUfKxOp lW6ZNeEtu4rlkeXFj69e+DiH+57NnqGLIVMbyOEN/8CEEXYps3lKm4d9WwOSg+r5cKDp nfWVjnDb4iM9bOIRw4wDCVNr+buC6GnoHN0QbGGvxdH3jnhU5TNvvn3X2ACdakb4msyh D26JRWxEoe93pQG83kvHQBzPUtfx6BJ3Wy4Od+WxxRWSaE/lQ+W17urjUwEHhD1NDsNq GILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=IATebEli; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l7-20020a1709066b8700b00991f8bce3cbsi510109ejr.722.2023.08.09.19.28.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 19:28:01 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=IATebEli; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3BCE838515D7 for ; Thu, 10 Aug 2023 02:27:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BCE838515D7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691634436; bh=JgUZ6PnaL8F9aRheHz37QGH8j/zQQgOdezicNJvDkPY=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=IATebElieiEWoY8N8nYZcNP1e6EgDjZTzBylYK+j6DCz6bGX0SJW4XMapUTYSdcBc GRZ9/0/6JVgRgwqn9O/XMhwINEk7sZRfwEP3hGaGvxupTgK8BZnAq3mjCldVRyu/yR m/QLrNcGVlugCpwxdUBTdvKKmElDf/uD5JkIPvtw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id B77253856DD6 for ; Thu, 10 Aug 2023 02:26:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B77253856DD6 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 0E9C4300089; Thu, 10 Aug 2023 02:26:33 +0000 (UTC) To: Tsukasa OI , Kito Cheng , Palmer Dabbelt , Andrew Waterman , Jim Wilson , Jeff Law Cc: gcc-patches@gcc.gnu.org Subject: [RFC PATCH 2/2] RISC-V: Fix documentation of __builtin_riscv_pause Date: Thu, 10 Aug 2023 02:26:03 +0000 Message-ID: In-Reply-To: References: Mime-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_MANYTO, 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: , X-Patchwork-Original-From: Tsukasa OI via Gcc-patches From: Tsukasa OI Reply-To: Tsukasa OI Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773730939762771025 X-GMAIL-MSGID: 1773807318634095915 From: Tsukasa OI This built-in does not imply the 'Xgnuzihintpausestate' extension. It does not change architectural state (because all HINTs are prohibited from doing that). gcc/ChangeLog: * doc/extend.texi: Fix the description of __builtin_riscv_pause. --- gcc/doc/extend.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 89c5b4ea2b20..7be27430666a 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -21570,9 +21570,9 @@ Returns the value that is currently set in the @samp{tp} register. @enddefbuiltin @defbuiltin{void __builtin_riscv_pause (void)} -Generates the @code{pause} (hint) machine instruction. This implies the -Xgnuzihintpausestate extension, which redefines the @code{pause} instruction to -change architectural state. +Generates the @code{pause} (hint) machine instruction, indicating that the +current hart should be temporarily paused or slowed down. +Available if the Zihintpause extension is enabled. @enddefbuiltin @node RISC-V Vector Intrinsics