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

Incorrect VS field handling in mstatus register #208

Open
fly-1011 opened this issue Sep 11, 2024 · 0 comments
Open

Incorrect VS field handling in mstatus register #208

fly-1011 opened this issue Sep 11, 2024 · 0 comments

Comments

@fly-1011
Copy link

Bug Description:

NutShell does not support the V extension. According to the RISC-V Privileged Specification, when the vector extension is not implemented, the VS field in the mstatus register should be 00. However, in the NutShell implementation, the VS field is incorrectly set to a non-zero value.

Screenshots
image
image

Expected Behavior:

The VS field should always be 00 when the vector extension is not enabled.

Actual Behavior:

The VS field in the mstatus register is incorrectly set to 10. The differences in other bits of the register are mentioned in #207

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