Skip to content

Commit 5e270a1

Browse files
Update arch/csr/H/vsscratch.yaml
Co-authored-by: Paul Clarke <[email protected]> Signed-off-by: Shehroz Kashif <[email protected]>
1 parent 83d0928 commit 5e270a1

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

spec/std/isa/csr/H/vsscratch.yaml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,27 @@ name: vsscratch
99
address: 0x240
1010
virtual_address: 0x140
1111
long_name: Virtual Supervisor Scratch Register
12-
description: |
13-
The vsscratch register is a VSXLEN-bit read/write register that is VS-mode’s version of
14-
supervisor register sscratch. When V=1, vsscratch substitutes for the usual sscratch,
15-
so instructions that normally read or modify sscratch actually access vsscratch instead.
16-
The contents of vsscratch never directly affect the behavior of the machine.
12+
description:
13+
- id: csr-vsscratch-purpose
14+
normative: true
15+
text: |
16+
The vsscratch register is a VSXLEN-bit read/write register that is VS-mode’s version of
17+
supervisor register sscratch. When V=1, vsscratch substitutes for the usual sscratch,
18+
so instructions that normally read or modify sscratch actually access vsscratch instead.
19+
20+
- id: csr-vsscratch-effect
21+
normative: true
22+
text: |
23+
The contents of vsscratch never directly affect the behavior of the machine.
1724
priv_mode: VS
1825
length: VSXLEN
1926
definedBy: H
20-
fields: {}
27+
fields:
28+
SCRATCH:
29+
type: RW
30+
reset_value: 0
31+
location_rv32: 31-0
32+
location_rv64: 63-0
33+
description: |
34+
Virtual supervisor scratch register.
35+

0 commit comments

Comments
 (0)