Closed andresag01 closed 2 months ago
this doesn't include reserved bits being non-zero, or GCTYPE which has the same problem
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
Change the specification for GCMODE so that it returns 0 when the input capability goes not have the X permission set.
Fixes https://github.com/riscv/riscv-cheri/issues/376