vsie
Virtual supervisor interrupt-enable register
- Address
0x204- Group
- Hypervisor and VS CSRs
- Privilege
HRW(privileged spec CSR listing, Virtual Supervisor Registers)- Access
- read/write; lowest privilege H (hypervisor, including VS CSRs)
- Address range
- Standard read/write
- Name in riscv-unified-db
- Virtual Supervisor Interrupt Enable
Privileged spec: Virtual supervisor interrupt-enable register
Description
The vsie register is a VSXLEN-bit read/write register that is VS-mode’s version of supervisor CSR sie. When V=1, vsie substitutes for the usual sie, so instructions that normally read or modify sie actually access vsie instead. However, interrupts directed to HS-level continue to be indicated in the HS-level sip register, not in vsip, when V=1.
When bit 13 of hideleg is zero, vsie.LCOFIE is read-only zero. Else, vsie.LCOFIE is an alias of sie.LCOFIE. When bit 10 of hideleg is zero, vsie.SEIE is read-only zero. Else, vsie.SEIE is an alias of hie.VSEIE. When bit 6 of hideleg is zero, vsie.STIE is read-only zero. Else, vsie.STIE is an alias of hie.VSTIE. When bit 2 of hideleg is zero, vsie.SSIE is read-only zero. Else, vsie.SSIE is an alias of hie.VSSIE.
From riscv-unified-db, reformatted.
Fields
| Field | Bits | Type | Description |
|---|---|---|---|
SSIE | 1 | RW-H | SSIE. Read-only zero when hideleg.VSSI is 0. Else, alias of hie.VSSIE. |
STIE | 5 | RW-H | STIE. Read-only zero when hideleg.VSTI is 0. Else, alias of hie.VSTIE. |
SEIE | 9 | RW-H | SEIE. Read-only zero when hideleg.VSEI is 0. Else, alias of hie.VSEIE. |
LCOFIE | 13 | RW-H | LCOFIE. Read-only zero when hideleg.LCOFI is 0. Else, alias of sie.LCOFIE. |
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/H/vsie.yaml
- csrrw, csrrs, csrrc (Zicsr instructions that access CSRs)