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: sw control eliding tag checks on per-pointer basis #12

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

deepak0414
Copy link
Collaborator

Even though page table encoding allows software to control whether a page is tagged or not, software may need to avoid tag checks even though page is tagged. Such situations are memory accesses to local objects to a function. Only when pointer to local objects is passed to another function, it is required to be checked for tags. Thus providing a control in spec for eliding tag checks on per-pointer basis using a special bypass pointer_tag value of 0.

Even though page table encoding allows software to control whether a page
is tagged or not, software may need to avoid tag checks even though page
is tagged. Such situations are memory accesses to local objects to a
function. Only when pointer to local objects is passed to another
function, it is required to be checked for tags. Thus providing a control
in spec for eliding tag checks on per-pointer basis using a special bypass
`pointer_tag` value of 0.

Signed-off-by: Deepak Gupta <[email protected]>
@deepak0414
Copy link
Collaborator Author

Spec is still in strawman phase.
Merging this change

@deepak0414 deepak0414 merged commit b740c14 into riscv:main Jan 4, 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