Skip to content

riscv: add stopei and vstopei AIA CSRs - #407

Merged
romancardenas merged 1 commit into
rust-embedded:masterfrom
cong-or:feat/aia-stopei-vstopei
Aug 1, 2026
Merged

riscv: add stopei and vstopei AIA CSRs#407
romancardenas merged 1 commit into
rust-embedded:masterfrom
cong-or:feat/aia-stopei-vstopei

Conversation

@cong-or

@cong-or cong-or commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Adds the supervisor (stopei, 0x15C) and virtual-supervisor (vstopei,
0x25C) top external interrupt registers, completing the *topei set
alongside mtopei (#400).

Both mirror the mtopei layout — iid [16:26], iprio [0:10], mask
0x07FF_07FF, with an is_interrupt_pending() helper and field/bitmask
tests. Follows on from #394 (siselect/vsiselect/stopi).

  • cargo test -p riscv: 60 passed (incl. new stopei/vstopei tests)
  • builds clean for riscv32imac-unknown-none-elf
  • fmt + clippy clean

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
cong-or force-pushed the feat/aia-stopei-vstopei branch from 12cd73f to 3f77c91 Compare July 29, 2026 14:13
@cong-or
cong-or marked this pull request as ready for review July 29, 2026 14:25
@cong-or
cong-or requested a review from a team as a code owner July 29, 2026 14:26

@romancardenas romancardenas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@romancardenas
romancardenas added this pull request to the merge queue Aug 1, 2026
Merged via the queue into rust-embedded:master with commit b54d06d Aug 1, 2026
167 checks passed
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.

2 participants