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

Update cheri-compressed-cap to fix Morello HW divergences #219

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

arichardson
Copy link
Member

@arichardson arichardson commented May 11, 2023

Fixes both the Morello regression and using setbounds on untagged capabilities for RISC-V when tag-clearing is enabled.

@arichardson arichardson force-pushed the fast-rep-check-and-morello-regression-fix branch 4 times, most recently from bc8847e to c1d6033 Compare May 16, 2023 23:57
@arichardson arichardson force-pushed the fast-rep-check-and-morello-regression-fix branch from c1d6033 to 31b7d87 Compare July 13, 2023 23:41
@arichardson
Copy link
Member Author

Updated (no longer includes fast rep check changes). Will commit once CI is happy.

Fixes a RISC-V assertion for

.4byte 0x007a285b # csetboundsimmediate x16, x20, 7
.4byte 0x01082a5b # csetboundsimmediate x20, x16, 16

with tag-clearing enabled.

@arichardson arichardson force-pushed the fast-rep-check-and-morello-regression-fix branch 2 times, most recently from 87e090d to 7787f82 Compare July 17, 2023 23:41
This fixes the regression introduced while updating
cheri-compressed-cap to CTSRD-CHERI/cheri-compressed-cap@1a3898f
and avoids asserting when attempting to use setbounds on
untagged capabilities for RISC-V (which is possible with the
new V9 semantics enabled):
```
.4byte 0x007a285b # csetboundsimmediate x16, x20, 7
.4byte 0x01082a5b # csetboundsimmediate x20, x16, 16
```
with tag-clearing enabled.

git subrepo pull target/cheri-common/cheri-compressed-cap

subrepo:
  subdir:   "target/cheri-common/cheri-compressed-cap"
  merged:   "e459597bfe"
upstream:
  origin:   "https://github.com/CTSRD-CHERI/cheri-compressed-cap"
  branch:   "master"
  commit:   "e459597bfe"
git-subrepo:
  version:  "0.4.5"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "dbb99be"
Calling this with zero length is fine and works as intended.
@arichardson arichardson force-pushed the fast-rep-check-and-morello-regression-fix branch from 7787f82 to 64e0c9d Compare July 18, 2023 00:11
@arichardson arichardson merged commit 490e0ca into dev Jul 19, 2023
25 checks passed
@arichardson arichardson deleted the fast-rep-check-and-morello-regression-fix branch July 19, 2023 00:40
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.

1 participant