Skip to content

csr fix: Modify CSR.scala to add the missing priviledge check#55

Merged
wakafa1 merged 3 commits intoOSCPU:masterfrom
ChanningYoung:dev-csr-fix
Jul 19, 2021
Merged

csr fix: Modify CSR.scala to add the missing priviledge check#55
wakafa1 merged 3 commits intoOSCPU:masterfrom
ChanningYoung:dev-csr-fix

Conversation

@ChanningYoung
Copy link
Copy Markdown
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

3 participants