WFI
Wait for Interrupt
WFI
Provides a hint to the implementation that the current hart can be stalled until an interrupt occurs.
Encoding
Binary Layout
00010000010100000000000001110011
31:0
Operands
Related
More in Privileged
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
WFI (Wait For Interrupt) provides a hint to the implementation that the current hart can be stalled until an interrupt might need servicing. Implementations may simply implement WFI as NOP.
Operation
while(!Interrupt) { /* low power state */ }