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

performance counters are stopped(mcycle and mintret) #8

Open
123swk123 opened this issue Jun 11, 2020 · 4 comments
Open

performance counters are stopped(mcycle and mintret) #8

123swk123 opened this issue Jun 11, 2020 · 4 comments

Comments

@123swk123
Copy link

CSR_MCOUNTINHIBIT is reset back to 0x05 after executing function libc_init_array

even though it was cleared at

clear these bits just before calling main.

@fanghuaqi
Copy link
Member

Hi @123swk123,

We have improved the startup and exception handling for Nuclei RISC-V processor using NMSIS, and adjust the gd32vf103 firmware in our Nuclei SDK, which will of course fix the issue.

Thanks
Huaqi

@123swk123
Copy link
Author

Has it been fixed already?

If so please share the commit details let me try to use it for my current work and feedback if I find something.

@fanghuaqi
Copy link
Member

It is not fixed in this repo, it is fixed in a seperated repo mentioned above maintained by Nuclei RISC-V Processor software team.

Thanks
Huaqi

@fanghuaqi
Copy link
Member

If you are using this repo, you can simply change this csrci CSR_MCOUNTINHIBIT, 0x5 to csrsi CSR_MCOUNTINHIBIT, 0x5 to enable the cycle/instret counter.

Thanks
Huaqi

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

2 participants