aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/dret.h
AgeCommit message (Collapse)AuthorFilesLines
2023-05-18Call stash_privilege more selectivelyrivosinc-etrigger_fix_exception_matchAndrew Waterman1-0/+1
2022-11-21When resuming from debug mode, clear mstatus.MPRV if the new privilege mode ↵YenHaoChen1-0/+2
is less than M-mode (#1149)
2021-09-26Convert dcsr to csr_tScott Johnson1-2/+2
2021-09-26Convert dpc to csr_tScott Johnson1-1/+1
2019-07-12DRET should not be legal in M-modeAndrew Waterman1-1/+1
2019-07-12Add debug_mode state bit, rather than overloading dcsr.causeAndrew Waterman1-1/+1
In the previous scheme, debug-mode software could exit debug mode by zeroing the dcsr.cause field. While benign, that behavior is out of spec.
2016-08-17Allow mstatus.MPP to store bad values; instead, validate on MRETAndrew Waterman1-4/+1
Either approach is legal, but this more closely matches Rocket.
2016-07-28Add support for virtual priv register. (#59)Tim Newsome1-1/+4
Users can use this register to inspect and change the privilege level of the core. It doesn't make any assumptions about the actual underlying debug mechanism (as opposed to having the user change DCSR directly, which may not exist in all debug implementations).
2016-05-23Single step appears to work.Tim Newsome1-0/+3
2016-05-23Add dret.Tim Newsome1-0/+6