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

When vsiselect is in the range of 0x070–0x0FF, does access to vsireg2 belong to IMSIC states? #103

Open
Jahhow opened this issue Nov 5, 2024 · 0 comments

Comments

@Jahhow
Copy link

Jahhow commented Nov 5, 2024

If the access belong to IMSIC states, then the access can be controled by stateen[58] (IMSIC),
so when mstateen0[58]=0, the access to vsireg2 shall raise illegal-instruction-exception.

Otherwise, if the access does not belong to IMSIC states, then the access should follow this rule in the AIA specification:

when vsiselect has a value in the range 0x30–0x3F or 0x70–0xFF, attempts from M-mode or HS-mode to access alias CSRs vsireg2 through vsireg6 raise an illegal instruction exception, and attempts from VS-mode to access sireg2 through sireg6 raise a virtual instruction exception.

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