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

fix(vaddr): vaddr_read_safe should not check hlvx instruction #769

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

good-circle
Copy link
Contributor

In previous design, before we do rvh_hlvx_check, we will only determine whether it is a instruction fetch request (MEM_TYPE_IFETCH). If it is a instruction fetch request, there is no need to determine if it is hlvx. However, for the case of examine memory (using vaddr_read_safe), the memory type is MEM_TYPE_READ, but there is still no need to determine if it is hlvx.

Since both instruction fetch requests and vaddr_read_safe function will pass a NULL pointer s here, we will decide whether to execute rvh_hlvx_check by determining whether or not s is NULL.

In previous design, before we do `rvh_hlvx_check`, we will only
determine whether it is a instruction fetch request
(`MEM_TYPE_IFETCH`). If it is a instruction fetch request, there
is no need to determine if it is hlvx. However, for the case of examine
memory (using `vaddr_read_safe`), the memory type is `MEM_TYPE_READ`,
but there is still no need to determine if it is hlvx.

Since both instruction fetch requests and `vaddr_read_safe` function
will pass a NULL pointer `s` here, we will decide whether to execute
`rvh_hlvx_check` by determining whether or not `s` is NULL.
@good-circle good-circle merged commit c52aef5 into master Jan 8, 2025
7 checks passed
@good-circle good-circle deleted the fix-vaddr_read_safe branch January 8, 2025 09:07
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.

3 participants