Privileged Instructions
6 RISC-V instructions in this extension - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | Format | Summary |
|---|---|---|---|
| DRET | DRET | R-Type (System) | Returns from Debug Mode to the mode defined in the 'dcsr' register. |
| MRET | MRET | R-Type (System) | Returns from a machine-mode trap handler. |
| SFENCE.VMA | SFENCE.VMA rs1, rs2 | R-Type (System) | Synchronizes updates to in-memory address translation data structures (TLB flush). |
| SRET | SRET | R-Type (System) | Returns from a supervisor-mode trap handler. |
| URET | URET | R-Type (System) | Returns from a user-mode trap handler (requires N extension). |
| WFI | WFI | R-Type (System) | Provides a hint to the implementation that the current hart can be stalled until an interrupt occurs. |