Webcentive RISC-V Reference

vsireg6

Virtual supervisor indirect register alias 6

Address
0x257
Group
Hypervisor and VS CSRs
Privilege
HRW (privileged spec CSR listing, Virtual Supervisor Indirect)
Access
read/write; lowest privilege H (hypervisor, including VS CSRs)
Address range
Standard read/write
Name in riscv-unified-db
Virtual Supervisor Indirect Register Alias 6

Privileged spec: Virtual supervisor indirect register alias 6

Description

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

The behavior of accesses to vsireg6 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 vsireg6 is always the current XLEN, not VSXLEN. For example, if HSXLEN = 64 and VSXLEN = 32, then vsireg6 is 64 bits wide when accessed from HS-mode (RV64), but 32 bits when accessed from VS-mode (RV32).

From riscv-unified-db, reformatted.

Fields

FieldBitsTypeDescription
VALUERV32 31-0 / RV64 63-0RWIndirectly Selected Register Value.

The data read or written from the register selected by the current value of vsiselect.

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

Specification and related pages