riscv / riscv-fast-interrupt

Proposal for a RISC-V Core-Local Interrupt Controller (CLIC)
https://jira.riscv.org/browse/RVG-63
Creative Commons Attribution 4.0 International
247 stars 49 forks source link

MNXTI CSR clarifications? #433

Open mark-honman opened 1 week ago

mark-honman commented 1 week ago

Section 3.8.7 "Next Interrupt Handler Address and Interrupt-Enable CSR"

It seems like the use of CSRRS was added after the text was written, leading to some inconsistencies.

Perhaps it would be helpful to be more explicit, say "mie and sie bits of the mstatus CSR are used for the RMW portion of the operation; no other bits may be set in the CSRRS/I or CSRRC/I operand"

It may be useful to describe in the conditions for a "suitable" pending interrupt, that those tests are independent of global interrupt enable (which appears to be the case, by inference from the example interrupt handler code in the SW section).