Skip to content

Commit 132d6c8

Browse files
committed
Add missing CSRs
1 parent 15e139b commit 132d6c8

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-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) Qualcomm Technologies, Inc. and/or its subsidiaries.
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) Qualcomm Technologies, Inc. and/or its subsidiaries.
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: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
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+
alias:
20+
- mie.SSIE
21+
description: |
22+
*Supervisor Software Interrupt Enable*
23+
type: RW
24+
reset_value: UNDEFINED_LEGAL
25+
definedBy: S
26+
STIE:
27+
location: 5
28+
alias:
29+
- mie.STIE
30+
description: |
31+
*Supervisor Timer Interrupt Enable*
32+
type: RO-H
33+
reset_value: UNDEFINED_LEGAL
34+
definedBy: S
35+
SEIE:
36+
location: 9
37+
alias:
38+
- mie.SEIE
39+
description: |
40+
*Supervisor External Interrupt Enable*
41+
type: RO-H
42+
definedBy: S
43+
reset_value: UNDEFINED_LEGAL
44+
LCOFIE:
45+
location: 13
46+
alias:
47+
- mie.LCOFIE
48+
description: |
49+
*Local Counter Overflow Interrupt Enable*
50+
type: RW-H
51+
reset_value: UNDEFINED_LEGAL
52+
definedBy: Sscofpmf

0 commit comments

Comments
 (0)