PAUSE
PAUSE
Hint that the hart's rate of instruction retirement should be temporarily reduced or paused.
Encoding
Binary Layout
00000001000000000000000000001111
31:0
Operands
Related
Across architectures
Spin-Wait Hint : how x86, ARM, RISC-V, and PowerISA each do this.
More in Zihintpause
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
PAUSE is a HINT: it indicates that the current hart's rate of instruction retirement should be temporarily reduced or paused. The duration of its effect is bounded and may be zero. It is used in spin-wait loops to save energy or yield resources to other harts; portable code should use one PAUSE per loop iteration. It is encoded as FENCE with pred=W, succ=0, fm=0, rd=x0 and rs1=x0 and mandates no memory ordering.
Operation
// HINT: temporarily reduce or pause instruction retirement (bounded, may be zero)