Skip to content

Commit ed76b6a

Browse files
Change several CSRs from unspecified base to base: 32 to comply with the spec. This is required for several use cases like Go risc-v support which relies only on 64-bit spec, thus being able to filter rv32 CSRs is mandatory. (#532)
Signed-off-by: Afonso Oliveira <[email protected]> Co-authored-by: Derek Hower <[email protected]>
1 parent 4fd527f commit ed76b6a

33 files changed

+33
-0
lines changed

arch/csr/H/henvcfgh.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ $schema: "csr_schema.json#"
44
kind: csr
55
name: henvcfgh
66
address: 0x61A
7+
base: 32
78
long_name: most-significant 32 bits of Hypervisor Environment Configuration
89
description: |
910
The henvcfgh CSR is a 32-bit read/write register for the most-significant 32 bits of `henvcfg`.

arch/csr/Zihpm/hpmcounter10h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter10h
88
long_name: User-mode Hardware Performance Counter 7, high half
99
address: 0xC8A
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter10h`.
1213

arch/csr/Zihpm/hpmcounter11h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter11h
88
long_name: User-mode Hardware Performance Counter 8, high half
99
address: 0xC8B
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter11h`.
1213

arch/csr/Zihpm/hpmcounter12h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter12h
88
long_name: User-mode Hardware Performance Counter 9, high half
99
address: 0xC8C
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter12h`.
1213

arch/csr/Zihpm/hpmcounter13h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter13h
88
long_name: User-mode Hardware Performance Counter 10, high half
99
address: 0xC8D
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter13h`.
1213

arch/csr/Zihpm/hpmcounter14h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter14h
88
long_name: User-mode Hardware Performance Counter 11, high half
99
address: 0xC8E
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter14h`.
1213

arch/csr/Zihpm/hpmcounter15h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter15h
88
long_name: User-mode Hardware Performance Counter 12, high half
99
address: 0xC8F
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter15h`.
1213

arch/csr/Zihpm/hpmcounter16h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter16h
88
long_name: User-mode Hardware Performance Counter 13, high half
99
address: 0xC90
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter16h`.
1213

arch/csr/Zihpm/hpmcounter17h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter17h
88
long_name: User-mode Hardware Performance Counter 14, high half
99
address: 0xC91
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter17h`.
1213

arch/csr/Zihpm/hpmcounter18h.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ kind: csr
77
name: hpmcounter18h
88
long_name: User-mode Hardware Performance Counter 15, high half
99
address: 0xC92
10+
base: 32
1011
description: |
1112
Alias for M-mode CSR `mhpmcounter18h`.
1213

0 commit comments

Comments
 (0)