Skip to content

Commit f8a7b59

Browse files
committed
idl: add indirect csr access; do direct csr access with functions
This does three things: * Remove `CSR[expression]` syntax for direct CSR reads ** `CSR[csr_name]` still works * Adds `direct_csr_lookup`/`csr_{hw,sw}_{read,write}` functions to access a CSR with a direct address * Adds `indirect_csr_lookup` to access an indirect CSR with an indirect address
1 parent bb6a2f8 commit f8a7b59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+363
-250
lines changed

arch/csr/Zihpm/hpmcounter10h.yaml

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

arch/csr/Zihpm/hpmcounter11h.yaml

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

arch/csr/Zihpm/hpmcounter12h.yaml

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

arch/csr/Zihpm/hpmcounter13h.yaml

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

arch/csr/Zihpm/hpmcounter14h.yaml

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

arch/csr/Zihpm/hpmcounter15h.yaml

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

arch/csr/Zihpm/hpmcounter16h.yaml

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

arch/csr/Zihpm/hpmcounter17h.yaml

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

arch/csr/Zihpm/hpmcounter18h.yaml

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

arch/csr/Zihpm/hpmcounter19h.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ kind: csr
77
name: hpmcounter19h
88
long_name: User-mode Hardware Performance Counter 16, high half
99
address: 0xC93
10-
base: 32
1110
description: |
1211
Alias for M-mode CSR `mhpmcounter19h`.
1312

0 commit comments

Comments
 (0)