-
Notifications
You must be signed in to change notification settings - Fork 877
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 support for smstateen 1.0.0 #1035
Add support for smstateen 1.0.0 #1035
Conversation
8cffd03
to
f78ae3b
Compare
If this was indeed generated from |
OK, I have sent a PR(riscv/riscv-opcodes#134) to riscv-opcodes to support this. |
7dbfdb8
to
08c4d29
Compare
In the first commit, s/blink/blank/ |
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.
It would be best to get that riscv-opcodes
change merged first, just in case it needs rebasing and the commit hash changes (in which case the hash here in encoding.h would be stale).
I've merged the corresponding riscv-opcodes PR. |
Ok. Thanks a lot, I'll update the encoding.h. |
08c4d29
to
1e76223
Compare
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 have tested this only so far as to see that it doesn't break any other features. I have not tested the Smstateen functionality.
@liweiwei90 can you tell us how you have tested this code?
Sorry. I didn't test the code systematically. Partial of the code was tested in an ugly way, such as for the check for fcsr, I set the bit in mstateen/sstateen to different values in reset to test the access from U mode. All of the functions are privilege-related. I didn't know a good way to test them. Any suggestions? |
1e76223
to
fdb01a5
Compare
All of these features need architectural tests, which are out of scope for Spike contributors, but such tests are sorely lacking in the open-source world. :( |
bc70815
to
8fbeaab
Compare
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.
All good now. Thank you for the contribution and for your patience with the review process.
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.
🎉
Add support for smstateen 1.0.0: