Skip to content

Commit ec67b34

Browse files
committed
Add missing CSRs
1 parent 15e139b commit ec67b34

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed

spec/std/isa/csr/dscratch0.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) Salil Mittal
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# yaml-language-server: $schema=../../../schemas/csr_schema.json
5+
6+
$schema: "csr_schema.json#"
7+
kind: csr
8+
name: dscratch0
9+
long_name: Debug scratch register
10+
address: 0x7B2
11+
priv_mode: D
12+
definedBy: Sdext
13+
length: MXLEN
14+
description: |
15+
Optional scratch register that can be used by implementations that need it. A debugger must
16+
not write to this register unless hartinfo explicitly mentions it (the Debug Module may use this
17+
register internally).
18+
writable: true
19+
fields:
20+
VALUE:
21+
location_rv32: 31-0
22+
location_rv64: 63-0
23+
description: |
24+
Scratch field to hold a value used by debug routines.
25+
type: RW-H
26+
reset_value: 0

spec/std/isa/csr/dscratch1.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright (c) Salil Mittal
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# yaml-language-server: $schema=../../../schemas/csr_schema.json
5+
6+
$schema: "csr_schema.json#"
7+
kind: csr
8+
name: dscratch1
9+
long_name: Debug scratch register
10+
address: 0x7B3
11+
priv_mode: D
12+
definedBy: Sdext
13+
length: MXLEN
14+
description: |
15+
Optional scratch register that can be used by implementations that need it. A debugger must
16+
not write to this register unless hartinfo explicitly mentions it (the Debug Module may use this
17+
register internally).
18+
writable: true
19+
fields:
20+
VALUE:
21+
location_rv32: 31-0
22+
location_rv64: 63-0
23+
description: |
24+
Scratch field to hold a value used by debug routines.
25+
type: RW-H
26+
reset_value: 0

spec/std/isa/csr/sie.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) Salil Mittal
2+
# SPDX-License-Identifier: BSD-3-Clause-Clear
3+
4+
# yaml-language-server: $schema=../../../schemas/csr_schema.json
5+
6+
$schema: "csr_schema.json#"
7+
kind: csr
8+
name: sie
9+
long_name: Supervisor interrupt-enable register
10+
address: 0x104
11+
priv_mode: S
12+
definedBy: S
13+
length: XLEN
14+
description: Supervisor interrupt-enable register.
15+
writable: true
16+
fields:
17+
SSIE:
18+
location: 1
19+
description: |
20+
Supervisor Software Interrupt Enable
21+
type: RW
22+
reset_value: UNDEFINED_LEGAL
23+
STIE:
24+
location: 5
25+
description: |
26+
Supervisor Timer Interrupt Enable
27+
type: RO-H
28+
reset_value: UNDEFINED_LEGAL
29+
SEIE:
30+
location: 9
31+
description: |
32+
Supervisor External Interrupt Enable
33+
type: RO-H
34+
reset_value: UNDEFINED_LEGAL
35+
LCOFIE:
36+
location: 13
37+
description: |
38+
Local Counter Overflow Interrupt Enable
39+
type: RW-H
40+
reset_value: UNDEFINED_LEGAL
41+
definedBy: Sscofpmf

0 commit comments

Comments
 (0)