DRET

Debug Return

DRET

Returns from Debug Mode to the mode defined in the 'dcsr' register.

Encoding

Binary Layout
01111011001000000000000001110011
31:0
 
Format R-Type (System)
Opcode 0x7B200073
Extension Privileged

Operands

Related

More in Privileged

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;