URET
User Return
URET
Returns from a user-mode trap handler (requires N extension).
Encoding
Binary Layout
0000000
31:25
00010
24:20
00000
19:15
000
14:12
00000
11:7
1110011
6:0
Operands
Related
More in Privileged
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
URET returns from a user-level trap (N extension). It restores PC from uepc and restores interrupt-enable state.
Operation
PC = UEPC; Priv = U; UIE = UPIE;