vsscratch

Virtual Supervisor Scratch Register

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.

Attributes

CSR Address

0x240

Virtual CSR Address

0x140

Defining extension

H

Length

64-bit

Privilege Mode

VS

Format

vsscratch format
Figure 1. vsscratch format

Field Summary

Name Location Type Reset Value

SCRATCH

63:0

RW

UNDEFINED_LEGAL

Fields

SCRATCH

Location

vsscratch[63:0]

Description

Virtual supervisor scratch register.

Type

RW

Read-Write

Field is writable by software. Any value that fits in the field is acceptable and shall be retained for subsequent reads.

Reset value

UNDEFINED_LEGAL