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

Illegal CSRs are not handled properly #7

Open
acw1251 opened this issue Nov 29, 2017 · 0 comments
Open

Illegal CSRs are not handled properly #7

acw1251 opened this issue Nov 29, 2017 · 0 comments
Assignees

Comments

@acw1251
Copy link
Collaborator

acw1251 commented Nov 29, 2017

Reads and writes to illegal CSRs should raise an Illegal Instruction exception. Since the commit ca2b76e, reads to illegal (or unimplemented) CSRs return 0, and writes do nothing. Before that commit, accesses to illegal CSRs caused a fromJust runtime error in Haskell.

I added the behavior in ca2b76e to get riscv-tests to work for now. If we fix this issue, we will break riscv-tests support until we implement all the CSRs used in those tests (e.g. satp, mideleg, medeleg, etc.).

@ijc8 ijc8 self-assigned this Dec 8, 2017
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

2 participants