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

Fix PMP locking #363

Merged
merged 4 commits into from
Jul 11, 2022
Merged

Fix PMP locking #363

merged 4 commits into from
Jul 11, 2022

Conversation

stnolting
Copy link
Owner

Triggered by riscv/riscv-isa-manual#866 this PR fixes the locking behavior of the physical memory protection (PMP) CPU extension:

If PMP entry i is locked, writes to pmpcfg(i) and pmpaddr(i) are ignored. Additionally, if PMP entry i is locked and pmpcfg(i).A is set to TOR, writes to pmpaddr(i-1) are ignored (added by this PR).

@stnolting stnolting added risc-v compliance Modification to comply with official RISC-V specs. HW hardware-related labels Jul 11, 2022
@stnolting stnolting self-assigned this Jul 11, 2022
@stnolting stnolting marked this pull request as ready for review July 11, 2022 11:01
@stnolting stnolting merged commit 50f1cbc into main Jul 11, 2022
@stnolting stnolting deleted the pmp_locking branch July 11, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW hardware-related risc-v compliance Modification to comply with official RISC-V specs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant