Skip to content

Conversation

ChanningYoung
Copy link
Contributor

This PR adds check in CSR so that access to higher-privileged CSRs (e.g., attempting to read MSTATUS in Supervisor mode) triggers an Illegal Instruction exception, according to RISC-V privileged spec.
This has passed the test of booting Debian on PYNQ-Z2.

@wakafa1 wakafa1 merged commit 1826e45 into OSCPU:master Jul 19, 2021
@ChanningYoung ChanningYoung deleted the dev-csr-fix branch July 19, 2021 09:47
FuWenyi pushed a commit to Jiayuah/NutShell that referenced this pull request Mar 28, 2023
FuWenyi pushed a commit to Jiayuah/NutShell that referenced this pull request Jul 26, 2023
csr fix: Modify CSR.scala to add the missing priviledge check
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

Successfully merging this pull request may close these issues.

3 participants