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

Wrong opcode for CSR_MCYCLE, CSR_MTIME and CSR_MTIMEH #24

Open
Gianluke27 opened this issue Sep 23, 2023 · 0 comments
Open

Wrong opcode for CSR_MCYCLE, CSR_MTIME and CSR_MTIMEH #24

Gianluke27 opened this issue Sep 23, 2023 · 0 comments

Comments

@Gianluke27
Copy link

According to the "ricv_privileged_spec" document on page 8 the instructions 0xC00, 0xC01 and 0xC80 refer to user-side instructions, while the machine-side instructions, i.e. mcycle, mtime and mcycleh are described on page 11 with the following opcodes: 0xB00, 0XB01, 0xB80.

In biriscv_defs on line 350 there are definitions to be modified.

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