-
Notifications
You must be signed in to change notification settings - Fork 32
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
Define behaviour for reserved RV32 permission encoding #47
Comments
Thanks for pointing this out. I agree that there is a gap in the spec regarding CGetPerm. However, CAndPerm does describe what happens in this case:
@PeterRugg had some comments about this behaviour, so there is a |
Hmm, that's a good question, and links into how we define the reserved permission bits in a way that maximises compatibility in all cases. I imagine the interpretation of all the encoded permission bits could potentially change when the reserved bits are set by future or non-standard extensions, i.e. effectively interpreting some of them as format bits. That means software shouldn't rely on the interpretation of the existing bits if the reserved bits are set. It still needs to be defined, though, so maybe all zero? |
I'm happy with all zeroes - as that doesn't exclude using the reserved value for a purpose other than representing permissions. |
Ok that makes sense; I'll make a PR. |
The spec says
I believe this can't ever happen for tagged capabilities but
CGetPerm
works for non-tagged capabilities. What should it return for this? Same question forCAndPerm
.The text was updated successfully, but these errors were encountered: