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

hvip: Correct logging value of mip on writing hvip #1741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YenHaoChen
Copy link
Collaborator

I found an issue in commit 20a7354. Sorry for the mistake.

The logging value is the read value on updating. The read value of mip depends on the value of hvip. Updating mip before hvip leaves an incorrect logging mip value that does not consider the new hvip. Thus, updating mip should be after basic_csr_t::unlogged_write() of hvip to log the correct value.

The return value of basic_csr_t::unlogged_write() is a constant true. Thus, the return value does not change after this commit.

The logging value is the read value on updating. The read value of mip
depends on the value of hvip. Updating mip before hvip leaves an
incorrect logging mip value that does not consider the new hvip. Thus,
updating mip should be after basic_csr_t::unlogged_write() of hvip to
log the correct value.

The return value of basic_csr_t::unlogged_write() is a constant true.
Thus, the return value does not change after this commit.
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