-
Notifications
You must be signed in to change notification settings - Fork 209
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
Misaligned fetch bit must be excluded for RVC #42
Comments
I don't see why it "must" be excluded; if misaligned fetch isn't possible, then either the mdeleg bit is rdonly-0, or the exception never occurs so the fact that you've delegated it is harmless. Do you disagree with this? |
I somehow didn't see this so I filed a duplicate of this the other day:
I think that the original issue description here was unnecessarily terse. The problem is that the reset code is self-checking and fails if mdeleg[0] is read-only (which you say should be allowable). Much more discussion is in my duplicate issue. |
the new tests from imperas now use a different header file: riscv_tests_macros.h which doesnt impose such reset vectors. Also privilege tests checking traps would probably have specific handlers described within the tests. |
closing this for now. Feel free to open if you disagree. Also this is fixed in RISCOF as well. |
https://github.com/riscv/riscv-compliance/blob/8dac5e5d3d498eaf576611ce69c2307968cf96e3/riscv-test-env/p/riscv_test.h#L159
This is the same as riscv/riscv-test-env#12
The text was updated successfully, but these errors were encountered: