Skip to content

Conversation

@chihminchao
Copy link
Contributor

No description provided.

the following change needs to access menvcfg in mstatus's member
function.

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
@chihminchao
Copy link
Contributor Author

@ved-rivos You may be interested.

Copy link
Collaborator

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting the commits to make this PR easy to review.

Ping me once you've addressed my comments and I'll merge it. (@ved-rivos is on vacation)

In privilege spec sec 3.1.18

" The Ssdbltrp extension adds the double-trap-enable ( DTE ) field in
menvcfg . When  menvcfg.DTE  is zero, the implementation  behaves  as
though  Ssdbltrp  is  not  implemented.  When  Ssdbltrp  is  not  implemented
sstatus.SDT ,  vsstatus.SDT , and  henvcfg.DTE  bits are read-only zero."

The change keep the mstatus.sdt unchangedable and always read-as-zero
when menvcfg.dte is cleared

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
@chihminchao
Copy link
Contributor Author

@aswaterman It is ready

@aswaterman aswaterman merged commit 7d49ba7 into riscv-software-src:master Nov 30, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants