Webcentive RISC-V Reference

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

FieldBitsTypeDescription
SSIP1RW-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 (mideleg.SSI is clear), sip.SSIP is read-only 0.

Otherwise, sip.SSIP is an alias of mip.SSIP.

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 sip.SSIP are also be reflected in mip.SSIP(when Smaia is implemented: and mvip.SSIP).

When Smaia is implemented:

Aliases

Otherwise:

Alias

:

  • mip.SSIP when mideleg.SSI is set

When Smaia is implemented:

  • mvip.SSIP when mideleg.SSI is set

To summarize:

mideleg.SSIsip.SSIP behavior
0read-only 0
1writable alias of mip.SSIP (when Smaia is implemented: and mvip.SSIP)
STIP5RO-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., mideleg.STI is clear), sip.STIP is read-only 0.

Otherwise, sip.STIP is a read-only view of mip.STIP.

When Smaia is implemented:

Aliases

Otherwise:

Alias

:

  • mip.STIP when mideleg.STI is set

When Smaia is implemented:

  • mvip.STIP when mideleg.SSI is set and menvcfg.STCE is clear.

To summarize:

mideleg.STIsip.STIP behavior
0read-only 0
1read-only alias of mip.STIP (when Smaia is implemented: (and mvip.STIP when menvcfg.STCE is clear))
SEIP9RO-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., mideleg.SEI is clear), sip.SEIP is read-only 0.

Otherwise, sip.SEIP is a read-only view of mip.SEIP.

To summarize:

mideleg.SEIsip.SEIP behavior
0read-only 0
1read-only alias of mip.SEIP
LCOFIP13RW-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., 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.LCOFIsip.LCOFIP behavior
0read-only 0
1
writable alias of mip.LCOFIP (and vsip.LCOFIP when hideleg.LCOFI is set)

Fields from riscv-unified-db; field types computed by IDL functions there are not shown.

Specification and related pages