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

Indicate GCMODE output for non-X caps #377

Merged
merged 2 commits into from
Sep 20, 2024
Merged

Conversation

andresag01
Copy link
Collaborator

Change the specification for GCMODE so that it returns 0 when the input capability goes not have the X permission set.

Fixes #376

@tariqkurd-repo
Copy link
Collaborator

this doesn't include reserved bits being non-zero, or GCTYPE which has the same problem

@andresag01
Copy link
Collaborator Author

this doesn't include reserved bits being non-zero, or GCTYPE which has the same problem

It is generally not a policy for these getter instruction's output to be dependent on whether the input capability is corrupted or not. It would be best to keep this idea, otherwise we will need to change other instructions like GCLEN, GCTYPE, GCPERM, ACPERM, etc to conform

@andresag01 andresag01 merged commit 71b06d6 into riscv:main Sep 20, 2024
3 checks passed
tariqkurd-repo pushed a commit to tariqkurd-repo/riscv-cheri that referenced this pull request Oct 9, 2024
Change the specification for GCMODE so that it returns 0 when the input
capability goes not have the X permission set.

Fixes riscv#376
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

Successfully merging this pull request may close these issues.

gcmode does not specify what to return when the mode is invalid
3 participants