]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix documentation of __builtin_riscv_pause
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 28 Aug 2023 21:13:53 +0000 (15:13 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 28 Aug 2023 21:13:53 +0000 (15:13 -0600)
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

index 26328676ad25d088deb46d88d87d79cbd5c0ce34..174d78547c2dec7222fc289dc1c3e8278861cb72 100644 (file)
@@ -21607,9 +21607,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.  If the target implements
+the Zihintpause extension, it indicates that the current hart should be
+temporarily paused or slowed down.
 @enddefbuiltin
 
 @node RISC-V Vector Intrinsics