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

Fix: the reserved bits in the Mode field of m/stvec #154

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

Conversation

youzi27
Copy link

@youzi27 youzi27 commented Dec 10, 2023

See issue #153

Explanation: When setting the value of the MODE field, the reserved bit (bit 1) should be cleared to zero. When reading the BASE field, the lowest bit (bit 0) of the MODE segment should be cleared to zero. This approach prevents writing to undefined MODE values and also ensures that the BASE field is four-byte aligned. Previously, neither of these requirements was satisfied.

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