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 9, 2024
1 parent e7d31f8 commit b7df096
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sdext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ 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 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 b7df096

Please sign in to comment.