-
Notifications
You must be signed in to change notification settings - Fork 462
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
Add hypervisor support for PrivRw #540
base: master
Are you sure you want to change the base?
Conversation
@aswaterman Would you kindly take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with this code, so I'd rather @aap-sc, @en-sc, or @timsifive sign off on this.
# It may be affected by reset halt | ||
misa = self.gdb.p(f"$misa=0x{self.hart.misa:x}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite get it. Which part is responsible for setting misa.H
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the power is turned on, the hart starts executing the brom code. Here does not affect this case, repeated testing will affect CheckMisa.
debug/gdbserver.py
Outdated
self.supported.add(4) | ||
self.supported.add(5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIU, H
extension does not require presence of both S
and U
extensions.
Therefore, I'd suggest something like:
self.supported.add(4) | |
self.supported.add(5) | |
self.supported_vmodes = self.supported | |
else: | |
self.supported_vmodes = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, addressed
c2340c6
to
dffe978
Compare
Change-Id: I635a8f86b407f104ea74f00f4aefa1ce8170cb2d
Change-Id: I635a8f86b407f104ea74f00f4aefa1ce8170cb2d