aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/dret.h
blob: 6cfd1e2660496c2bf137bb64188ad78b7b84a346 (plain)
1
2
3
4
5
6
require_privilege(PRV_M);
set_pc_and_serialize(STATE.dpc);
p->set_privilege(STATE.dcsr.prv);

/* We're not in Debug Mode anymore. */
STATE.dcsr.cause = 0;