WFI

Wait for Interrupt

WFI

Provides a hint to the implementation that the current hart can be stalled until an interrupt occurs.

Details

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.

Pseudocode Operation

while(!Interrupt) { /* low power state */ }

Example

WFI

Encoding

Binary Layout
0001000
31:25
00101
24:20
00000
19:15
000
14:12
00000
11:7
1110011
6:0
 
Format R-Type (System)
Opcode 0x73
Extension Privileged

Operands