-
Notifications
You must be signed in to change notification settings - Fork 688
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
Highest bits in Sv39 #136
Comments
Yes you are absolutely right. Unfortunately there is some other issue with this code: Actually we should not test this in machine mode. @msfschaffner has a patch for this and will also include the issue you address. Thanks for bringing this up. |
Thanks for reporting this. I'll include it in the patch that fixes the page-fault checks. |
OttG
pushed a commit
to OttG/cva6
that referenced
this issue
Jul 6, 2021
Fix mismatches in virtual address checking logic (this fixes openhwgroup#136). - Instr/ld/st must only throw access faults when virtual memory translation is enabled - Correct tested bit slice from [63:39] to [63:38] - Fixes openhwgroup#136
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The spec says:
Load and store effective addresses, which are 64 bits, must have bits 63–39
all equal to bit 38, or else a page-fault exception will occur.
The code says:
So then the 39 in the code should be 38?
Jan
The text was updated successfully, but these errors were encountered: