Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can a sealed cap be written to MTCC/STCC? #84

Open
tariqkurd-repo opened this issue Aug 10, 2023 · 0 comments
Open

can a sealed cap be written to MTCC/STCC? #84

tariqkurd-repo opened this issue Aug 10, 2023 · 0 comments

Comments

@tariqkurd-repo
Copy link

tariqkurd-repo commented Aug 10, 2023

CSpecialRW of a sealed capability to an SCR which extends a CSR with any 
non-preserved bits clears the tag on the capability, even if the address 
would not be changed.

For this text - I think this must refer to xTCC which extend xTVEC - because of the MODE field in address[1:0] - bit[1] can never be set. The SAIL calls the standard RISC-V legalize_tvec which checks the MODE field is legal before calling update_cap_with_integer_pc which does the representability check. I don't see any code which clears the tag on sealed writes to xTCC though.

What's the correct answer, and have I understood the spec correctly?
FWIW my vote goes with the SAIL.

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

No branches or pull requests

1 participant