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

reading mtinst gives illegal instruction exception #1653

Open
omerguzelelectronicguy opened this issue Apr 25, 2024 · 1 comment
Open

reading mtinst gives illegal instruction exception #1653

omerguzelelectronicguy opened this issue Apr 25, 2024 · 1 comment

Comments

@omerguzelelectronicguy
Copy link

If I understand correctly from spec, mtinst is a WARL register that can be written by machine mode. However, reading it in machine mode when the H extension is not opened, caused an illegal instruction exception.

Should not the correct behaviour be reading legal value of mtinst in machine mode?

@jerryz123
Copy link
Collaborator

mtinst is part of H, so if misa.H is unset (which I assume is what you mean by "H extension is not opened"), reads to mtinst will trap with illegal instruction.

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