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

src/mte_tag: clearly define tag check conditions per privilege mode #18

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

deepak0414
Copy link
Collaborator

Clearly define under which conditions loads/stores are subject to tag checks in each prvilege mode. In M-mode and satp.MODE == Bare, all loads/stores are subject to tag checks. Software can rely on using pointer_tag == 0 to elide tag checks. In less than M-mode where satp.MODE != Bare, software can use page table bits to create various discontigous regions of memory which may or may not be subject to tag checks.

Clearly define under which conditions loads/stores are subject to tag
checks in each prvilege mode. In M-mode and `satp.MODE == Bare`, all
loads/stores are subject to tag checks. Software can rely on using
`pointer_tag == 0` to elide tag checks. In less than M-mode where
`satp.MODE != Bare`, software can use page table bits to create
various discontigous regions of memory which may or may not be subject
to tag checks.

Signed-off-by: Deepak Gupta <[email protected]>
@deepak0414 deepak0414 merged commit 3ebc256 into riscv:main Jan 7, 2025
2 checks passed
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