riscv: add stopei and vstopei AIA CSRs - #407
Merged
romancardenas merged 1 commit intoAug 1, 2026
Merged
Conversation
Add the supervisor (0x15C) and virtual-supervisor (0x25C) top external interrupt registers, completing the *topei set alongside mtopei (0x35C). Both mirror the mtopei layout: iid [16:26], iprio [0:10], mask 0x07FF_07FF, with an is_interrupt_pending() helper plus field and bitmask tests.
cong-or
force-pushed
the
feat/aia-stopei-vstopei
branch
from
July 29, 2026 14:13
12cd73f to
3f77c91
Compare
cong-or
marked this pull request as ready for review
July 29, 2026 14:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the supervisor (
stopei, 0x15C) and virtual-supervisor (vstopei,0x25C) top external interrupt registers, completing the
*topeisetalongside
mtopei(#400).Both mirror the
mtopeilayout —iid [16:26],iprio [0:10], mask0x07FF_07FF, with anis_interrupt_pending()helper and field/bitmasktests. Follows on from #394 (siselect/vsiselect/stopi).
cargo test -p riscv: 60 passed (incl. new stopei/vstopei tests)riscv32imac-unknown-none-elf