SRET
Supervisor Return
SRET
Returns from a supervisor-mode trap handler.
Encoding
Binary Layout
00010000001000000000000001110011
31:0
Operands
Related
More in Privileged
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
SRET returns from a supervisor-level trap. It restores the PC from sepc, restores privilege from the SPP field of sstatus, and updates interrupt-enable fields.
Operation
PC = SEPC; Priv = SPP; SIE = SPIE;