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

CSR_MHPMCOUNTER3 counter initialization on hart_pmu_get_allowed_bits() #381

Open
Tiago-R opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@Tiago-R
Copy link

Tiago-R commented Nov 27, 2024

I'm working on expanding the functionality of the RISC-V HPM and during my testing I stumbled upon a "bug" where the value of CSR_MHPMCOUNTER3 as all it's bits set to 1 during the openSBI initialization process. Should it not respect the value defined by the architecture during an HW reset? Or is there any reason why leaving the value as is advantageous?

@Tiago-R Tiago-R changed the title CSR_MHPMCOUNTER3 counters initialization on hart_pmu_get_allowed_bits() CSR_MHPMCOUNTER3 counter initialization on hart_pmu_get_allowed_bits() Nov 27, 2024
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

No branches or pull requests

1 participant