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

Make store-local violations non-trapping. #26

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

davidchisnall
Copy link
Collaborator

It's difficult to write defensive code if stores may trap depending on the copied value. Allowing store-local to trap makes it easy to force anything that copies on behalf of a caller able to trap by inserting a local capability into the source that it's copying from.

This change is already made in CHERIoT Ibex, the spec is catching up.

This also removes the associated exception codes. We may wish to reserve them for a debugging mode for finding places where the tag clearing occurs.

Fixes #20.

@rmn30
Copy link
Collaborator

rmn30 commented Jan 23, 2024

Looks fine. However I was planning to set up a change log in the ISA doc before merging any ISA changes and ideally would keep the doc in sync with sail with each commit.

sail-riscv Outdated Show resolved Hide resolved
It's difficult to write defensive code if stores may trap depending on
the copied value.  Allowing store-local to trap makes it easy to force
anything that copies on behalf of a caller able to trap by inserting a
local capability into the source that it's copying from.

This change is already made in CHERIoT Ibex, the spec is catching up.

This also removes the associated exception codes.  We may wish to
reserve them for a debugging mode for finding places where the tag
clearing occurs.

Fixes #20.
@rmn30 rmn30 merged commit de571fe into main Jan 23, 2024
3 checks passed
rmn30 pushed a commit that referenced this pull request Jan 24, 2024
Also update archdoc for change to tag clearing on store local violations (#20, #26).
rmn30 pushed a commit that referenced this pull request Jan 24, 2024
Also update archdoc for change to tag clearing on store local violations (#20, #26).
rmn30 pushed a commit that referenced this pull request Jan 24, 2024
Also update archdoc for change to tag clearing on store local violations (#20, #26).
rmn30 pushed a commit that referenced this pull request Jan 24, 2024
Also update archdoc for change to tag clearing on store local violations (#20, #26).
@rmn30 rmn30 deleted the no-trapping-store-local branch January 24, 2024 15:29
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.

Local violations should be non-trapping
2 participants