← Home

vsscratch

Virtual Supervisor Scratch Register

Address: 0x240 (576) · Privilege: VS · Length: VSXLEN · Writable · Defined by: H · Virtual address: 320

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.

Fields

RV32

31:2423:1615:87:0
SCRATCH

RV64

63:5655:4847:4039:3231:2423:1615:87:0
SCRATCH
BitsFieldAliasDescriptionTypeReset
RV32 [31:0]
RV64 [63:0]
SCRATCHVirtual supervisor scratch register.RWUNDEFINED_LEGAL

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.