-
Notifications
You must be signed in to change notification settings - Fork 836
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
Spike throws exception on PMP CSR access #1046
Comments
Not a bug. The ISA spec says that "implementations may support zero, 16, or 64 PMP CSRs." The SAIL model was correct both before and after your change. Spike is correct today. |
True, but do we have support for 64 PMP CSRs in Spike? |
As a matter of courtesy, please don’t submit feature requests as bug reports. encoding.h is an auto-generated file that doesn’t relate to what spike supports. |
For the following PMP CSRs access, SPIKE throws an exception:
I have written a test where I configure the
pmp16cfg
entry in TOR mode and hence usedpmpcfg4
which in turn usespmpaddr16
topmpaddr19
. SPIKE throws exceptions on these CSR accesses, unlike SAIL. SAIL is giving the expected results and working fine after these changes has made in sail-riscv.The test file is attached below and it is run under riscof framework.
pmp-addr_match-tor_mode.txt
The text was updated successfully, but these errors were encountered: