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
Requirement |
|||
|---|---|---|---|
Defining extensions |
|
||
CSR Address |
0x240 |
||
Virtual CSR Address |
0x140 |
||
Length |
* 32 when CSR[hstatus].VSXL == 0 * 64 when CSR[hstatus].VSXL == 1 |
||
Privilege Mode |
VS |
Format
This CSR format changes dynamically.
Figure 1. vsscratch Format when CSR[hstatus].VSXL == 0
Figure 2. vsscratch Format when CSR[hstatus].VSXL == 1