DRET

Debug Return

DRET

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

Details

DRET returns from debug mode. It restores PC from dpc and restores the privilege mode recorded before entering debug mode.

Pseudocode Operation

PC = DPC; Priv = DCSR.prv;

Example

DRET

Encoding

Binary Layout
0111101
31:25
10010
24:20
00000
19:15
000
14:12
00000
11:7
1110011
6:0
 
Format R-Type (System)
Opcode 0x73
Extension Privileged

Operands