Skip to content

Conversation

snnbyyds
Copy link
Contributor

@snnbyyds snnbyyds commented Sep 21, 2025

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.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a 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

Copy link
Contributor

@jserv jserv left a 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.

@snnbyyds
Copy link
Contributor Author

Improve git commit messages.

Updated

@jserv
Copy link
Contributor

jserv commented Sep 21, 2025

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.

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 <snnbyyds@gmail.com>
@snnbyyds
Copy link
Contributor Author

Updated as per your suggestion.

Copy link
Collaborator

@ChinYikMing ChinYikMing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jserv jserv merged commit f29a741 into sysprog21:master Sep 21, 2025
57 of 64 checks passed
@jserv
Copy link
Contributor

jserv commented Sep 21, 2025

Thank @snnbyyds for contributing!

@jserv jserv added this to the release-2025.2 milestone Oct 1, 2025
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