ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

vsireg

T1 riscv register register
Virtual Supervisor Indirect Register Alias
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRISC-V Privileged (H, Smcsrind, Sscsrind)
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
PrivilegeVS
ExtensionsH, Smcsrind, Sscsrind

Summary

The vsireg CSR is one of several alias registers used to indirectly access virtual supervisor-level CSRs in VS-mode or VU-mode.

Syntax / Encoding

CSR 0x251 (VS-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0VALUEThe data read from or written to the register selected by the current value of the vsiselect CSR. [RV32: 31:0, RV64: 63:0]

Reference Notes

The `vsireg` CSR is one of several alias registers used to indirectly access
virtual supervisor-level CSRs in VS-mode or VU-mode.

The register addressed by `vsireg` is selected by the current value of the `vsiselect` CSR.

The alias mechanism allows indirect CSR access, which helps in virtualization and future extensibility.

A virtual instruction exception is raised for attempts from VS-mode or VU-mode
to directly access `vsiselect` or `vsireg`, or from VU-mode to access `siselect` or `sireg`.

The behavior of accesses to `vsireg` when `vsiselect` holds a value that is
not implemented at the HS level is UNSPECIFIED.

Implementations are recommended to raise an illegal instruction exception for
accesses to unimplemented targets via `vsireg`.

The width of `vsireg` is always the current `XLEN`, not `VSXLEN`.
For example, if `HSXLEN = 64` and `VSXLEN = 32`, then `vsireg` is 64 bits wide
when accessed from HS-mode (RV64), but 32 bits when accessed from VS-mode (RV32).