DRET
Debug Return
DRET
Returns from Debug Mode to the mode defined in the 'dcsr' register.
Encoding
Binary Layout
01111011001000000000000001110011
31:0
Operands
Related
More in Privileged
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
DRET returns from debug mode. It restores PC from dpc and restores the privilege mode recorded before entering debug mode.
Operation
PC = DPC; Priv = DCSR.prv;