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

vsireg5

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

Syntax / Encoding

CSR 0x256 (VS-mode, RW)

Bitfields (1)

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

Reference Notes

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

The behavior of accesses to `vsireg5` 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
such accesses to unimplemented targets.

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