Skip to content

Commit

Permalink
Update resume from debug mode behavior with Smdbltrp
Browse files Browse the repository at this point in the history
  • Loading branch information
ved-rivos committed Jul 5, 2024
1 parent e7d31f8 commit 9df0c18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sdext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ When a hart resumes:
. The current privilege mode and virtualization mode are changed to that
specified by {dcsr-prv} and {dcsr-v}.
. If the new privilege mode is less privileged than M-mode, `MPRV` in `mstatus` is cleared.
. If the Smdbltrp extension is implemented and the new privilege mode is not M,
then the `MDT` bit is set to 0. If the Ssdbltrp extension is implemented and
the new privilege mode is U, VS, or VU, then `sstatus.SDT` is also set to 0.
Additionally, if it is VU, then `vsstatus.SDT` is also set to 0.
. The hart is no longer in debug mode.

[[debreg]]
Expand Down

0 comments on commit 9df0c18

Please sign in to comment.