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

vsireg2

T1 riscv register register
Virtual Supervisor Indirect Register Alias 2
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 vsireg2 CSR is one of several alias registers used to indirectly access virtual supervisor-level CSRs in VS-mode or VU-mode.

Syntax / Encoding

CSR 0x252 (VS-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0VALUEData read or written based on the currently selected vsiselect value. [RV32: 31:0, RV64: 63:0]

Reference Notes

The `vsireg2` 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 `vsireg2` 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 `vsireg2`, or from VU-mode to access `siselect` or `siregX`.

The behavior of accesses to `vsireg2` 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 `vsireg2`.

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