Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Stateen controlling access to state #10

Open
vernonpang opened this issue Aug 1, 2022 · 0 comments
Open

Stateen controlling access to state #10

vernonpang opened this issue Aug 1, 2022 · 0 comments

Comments

@vernonpang
Copy link

vernonpang commented Aug 1, 2022

when a stateen CSR prevents access to state by less-privileged levels, an attempt in one of those privilege modes to execute an instruction that would read or write the protected state raises an illegal instruction exception, or, if executing in VS or VU mode and the circumstances for a virtual instruction exception apply, raises a virtual instruction exception instead of an illegal instruction exception.

Does the above apply only to CSR read/write instructions? Does it also apply to instructions such as cbo.zero from the Zicboz extension where envcfg.CBZE is implicitly read to determine if the instruction should raise an illegal/virtual instruction exception?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant