Skip to content

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

Open
youzi27 wants to merge 1 commit intoOSCPU:masterfrom
youzi27:fix-tvec-Mode
Open

Fix: the reserved bits in the Mode field of m/stvec#154
youzi27 wants to merge 1 commit intoOSCPU:masterfrom
youzi27:fix-tvec-Mode

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