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

Hardwire the reserved bits of the PMPCFG CSR to 0 #1368

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

Moschn
Copy link
Contributor

@Moschn Moschn commented Sep 7, 2023

Currently, the PMPCFG CSRs are implemented as a full 8-bit register. However, the bits 5 and 6 are reserved according to the privilege spec. This patch hardwires these two bits to 0. This should also fix the discrepancy between spike and CVA6 for the PMPCFG CSRs (#1346 ). It might also lead to lower area/less luts used.

This realigns CVA6 with spike (openhwgroup#1346)

Signed-off-by: Moritz Schneider <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

✔️ successful run, report available here.

Copy link
Contributor

@zarubaf zarubaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Save all the bits! Thanks @Moschn

@JeanRochCoulon JeanRochCoulon merged commit de986ed into openhwgroup:master Sep 11, 2023
@JeanRochCoulon
Copy link
Contributor

@spidugu444 do you confirm this PR fix (partially) #1346 ?

@spidugu444
Copy link
Contributor

With this PR PMPCFG CSR bit [6:5] has been hardwired to zero, which fix the discrepancy between spike and CVA6.

@Moschn Moschn deleted the pmpcfg-csr-fix branch April 12, 2024 09:19
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.

4 participants