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 mstatus Setting for Non-Existent CSR Access in M-Mode #216

Open
youzi27 opened this issue Nov 21, 2024 · 0 comments
Open

Incorrect mstatus Setting for Non-Existent CSR Access in M-Mode #216

youzi27 opened this issue Nov 21, 2024 · 0 comments

Comments

@youzi27
Copy link

youzi27 commented Nov 21, 2024

Describe the bug

When accessing a specific non-existent CSR (e.g., 0xb7d) in M-mode, NutShell sets the mstatus register incorrectly, while other CSRs such as mepc and mcause remain consistent with Spike. Upon reviewing the NutShell source code CSR, there is no evidence of a custom implementation for this CSR.

Steps to Reproduce

  1. Enter M-mode.
  2. Attempt to access a non-existent CSR, such as 0xb7d.
  3. Compare the behavior of NutShell's CSRs.

Screenshots

image

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