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

🐛 [PMP] fix pmpaddr CSR layout #283

Merged
merged 6 commits into from
Mar 2, 2022
Merged

🐛 [PMP] fix pmpaddr CSR layout #283

merged 6 commits into from
Mar 2, 2022

Conversation

stnolting
Copy link
Owner

This PR fixes a bug in the layout of the pmpaddr physical memory protection CSRs.

According to the RISC-V specs. these CSRs are use to configure bits 33:2 of the region's physical address. Note that the two most-significant bits (33:31) are hardwired to zero as the NEORV32 does not support virtual addresses (by default).

@stnolting stnolting added bug Something isn't working risc-v compliance Modification to comply with official RISC-V specs. labels Mar 2, 2022
@stnolting stnolting self-assigned this Mar 2, 2022
@stnolting stnolting added HW hardware-related SW software-related labels Mar 2, 2022
@stnolting stnolting marked this pull request as ready for review March 2, 2022 04:32
@stnolting stnolting merged commit 1296718 into main Mar 2, 2022
@stnolting stnolting deleted the fix_pmpaddr_bug branch March 2, 2022 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HW hardware-related risc-v compliance Modification to comply with official RISC-V specs. SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant