Supervisor Interrupt Pending
A restricted view of the interrupt pending bits in `mip`.
Hypervisor-related interrupts (VS-mode interrupts and Supervisor Guest interrupts) are not reflected in `sip` even though those interrupts can be taken in HS-mode. Instead, they are reported through `hip`.
| 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | LCOFIP | — | SEIP | — | STIP | — | SSIP | — | |||||||||||||||||||||||
| 63:56 | 55:48 | 47:40 | 39:32 | 31:24 | 23:16 | 15:8 | 7:0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| — | LCOFIP | — | SEIP | — | STIP | — | SSIP | — | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bits | Field | Alias | Description | Type | Reset |
|---|---|---|---|---|---|
| [1] | SSIP | ['sip.SSIP', 'mvip.SSIP'] | *Supervisor Software Interrupt Pending* Reports the current pending state of an (H)S-mode software interrupt. When Supervisor Software Interrupts are not delegated to (H)S-mode (`mideleg.SSI` is clear), `sip.SSIP` is read-only 0. Otherwise, `sip.SSIP` is an alias of `mip.SSIP`. When using AIA/IMSIC, IPIs are expected to be delivered as external interrupts and SSIP is not backed by any hardware update (aside from any aliasing effects). However, SSIP is still writable by S-mode software and, when written, can be used to generate an S-mode Software Interrupt. Since it is an alias, writes to `sip.SSIP` are also be reflected in `mip.SSIP` and `mvip.SSIP`. _Aliases__Alias_: * `mip.SSIP` when `mideleg.SSI` is set * `mvip.SSIP` when `mideleg.SSI` is set To summarize: ! `mideleg.SSI` ! `sip.SSIP` behavior ! 0 ! read-only 0 ! 1 ! writable alias of `mip.SSIP` and `mvip.SSIP` | RW-R | UNDEFINED_LEGAL |
| [5] | STIP | ['mip.STIP', 'mvip.STIP'] | *Supervisor Timer Interrupt Pending* Reports the current pending state of an (H)S-mode timer interrupt. When Supervisor Timer Interrupts are not delegated to (H)S-mode (_i.e._, `mideleg.STI` is clear), `sip.STIP` is read-only 0. Otherwise, `sip.STIP` is a read-only view of `mip.STIP`. _Aliases__Alias_: * `mip.STIP` when `mideleg.STI` is set * `mvip.STIP` when `mideleg.SSI` is set and `menvcfg.STCE` is clear. To summarize: ! `mideleg.STI` ! `sip.STIP` behavior ! 0 ! read-only 0 ! 1 ! read-only alias of `mip.STIP` (and `mvip.STIP` when `menvcfg.STCE` is clear) | RO-H | UNDEFINED_LEGAL |
| [9] | SEIP | ['mip.SEIP'] | *Supervisor External Interrupt Pending* Reports the current pending state of an (H)S-mode external interrupt. When Supervisor External Interrupts are not delegated to (H)S-mode (_i.e._, `mideleg.SEI` is clear), `sip.SEIP` is read-only 0. Otherwise, `sip.SEIP` is a read-only view of `mip.SEIP`. To summarize: ! `mideleg.SEI` ! `sip.SEIP` behavior ! 0 ! read-only 0 ! 1 ! read-only alias of `mip.SEIP` | RO-H | UNDEFINED_LEGAL |
| [13] | LCOFIP | ['mip.LCOFIP', 'vsip.LCOFIP'] | *Local Counter Overflow Interrupt pending* Reports the current pending state of a Local Counter Overflow interrupt. When Local Counter Overflow interrupts are not delegated to (H)S-mode (_i.e._, `mideleg.LCOFI` is clear), `sip.LCOFIP` is read-only 0. Otherwise, `sip.LCOFIP` is an alias of `mip.LCOFIP`. Software writes 0 to `sip.LCOFIP` to clear the pending interrupt. To summarize: ! `mideleg.LCOFI` ! `sip.LCOFIP` behavior ! 0 ! read-only 0 ! 1 a! writable alias of `mip.LCOFIP` (and `vsip.LCOFIP` when `hideleg.LCOFI` is set) | RW-RH | UNDEFINED_LEGAL |
return $bits(CSR[mip]) & $bits(CSR[mideleg]);
Version af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.