sip
Supervisor interrupt pending
- Address
0x144- Group
- Supervisor-level CSRs
- Privilege
SRW(privileged spec CSR listing, Supervisor Trap Handling)- Access
- read/write; lowest privilege S (supervisor)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Supervisor Interrupt Pending
Privileged spec: Supervisor interrupt pending
Description
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.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
SSIP | 1 | RW-R | 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 ( Otherwise, When Smaia is implemented: 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 When Smaia is implemented: Aliases Otherwise: Alias :
When Smaia is implemented:
To summarize:
| ||||||
STIP | 5 | RO-H | 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., Otherwise, When Smaia is implemented: Aliases Otherwise: Alias :
When Smaia is implemented:
To summarize:
| ||||||
SEIP | 9 | RO-H | 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., Otherwise, To summarize:
| ||||||
LCOFIP | 13 | RW-RH | 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., Otherwise, Software writes 0 to To summarize:
|
Fields from riscv-unified-db; field types computed by IDL functions there are not shown.
Specification and related pages
- The RISC-V Instruction Set Manual, Volume II: CSR listing (src/priv/csrs.adoc)
- riscv-opcodes csrs.csv
- riscv-unified-db: spec/std/isa/csr/sip.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)