-
Notifications
You must be signed in to change notification settings - Fork 122
Fix Wrong MSTATUS_MXR_SHIFT #610
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
Conversation
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.
No issues found across 1 file
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.
Improve git commit messages.
5a136be to
576f105
Compare
Updated |
|
Follow How to Write a Git Commit Message: |
MSTATUS_MXR_SHIFT was incorrectly defined as 18, duplicating the SUM shift value, and is corrected to 19 to match the RISC-V specification. Signed-off-by: snnbyyds <[email protected]>
576f105 to
5ae66cc
Compare
|
Updated as per your suggestion. |
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.
LGTM.
|
Thank @snnbyyds for contributing! |
Summary by cubic
Corrects the MSTATUS_MXR_SHIFT constant in riscv.h from 18 to 19 to match the RISC-V spec. This fixes MXR bit handling and avoids aliasing with the SUM bit.