ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vsscratch

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

Summary

The vsscratch register is a VSXLEN-bit read/write register that is VS-mode’s version of supervisor register sscratch. When V=1, vsscratch substitutes for the usual sscratch, so instructions that normally read or modify sscratch actually access vsscratch instead. The contents of vsscratch never directly affect the behavior of the machine.

Syntax / Encoding

CSR 0x240 (VS-mode, RW)

Bitfields (1)

BitsFieldDescription
63:0SCRATCHVirtual supervisor scratch register. [RV32: 31:0, RV64: 63:0]

Reference Notes

The vsscratch register is a VSXLEN-bit read/write register that is VS-mode’s version of supervisor register sscratch.
When V=1, vsscratch substitutes for the usual sscratch, so instructions that normally read or modify sscratch actually access vsscratch instead.
The contents of vsscratch never directly affect the behavior of the machine.