aboutsummaryrefslogtreecommitdiff
path: root/constants.py
diff options
context:
space:
mode:
authorTsukasa OI <research_trasio@irq.a4lg.com>2022-06-27 14:37:03 +0900
committerTsukasa OI <research_trasio@irq.a4lg.com>2022-06-27 14:47:10 +0900
commit91ede9a7e3cafa3228028993df7a790c7bf55c55 (patch)
treea84607efbb1ed4bdd18760bcf1b3d0de11207ff3 /constants.py
parentc5f7403a575ce69d6a301f22f5056f2da72a9114 (diff)
downloadriscv-opcodes-91ede9a7e3cafa3228028993df7a790c7bf55c55.zip
riscv-opcodes-91ede9a7e3cafa3228028993df7a790c7bf55c55.tar.gz
riscv-opcodes-91ede9a7e3cafa3228028993df7a790c7bf55c55.tar.bz2
Add 'Sscofpmf' standard extension CSRs
cf. <https://github.com/riscv/riscv-count-overflow/releases/tag/v0.5.2>
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/constants.py b/constants.py
index 25d96dd..904ea38 100644
--- a/constants.py
+++ b/constants.py
@@ -145,6 +145,9 @@ csrs = [
(0x6A8, 'hcontext'),
(0xE12, 'hgeip'),
+ # Standard Supervisor RO
+ (0xDA0, 'scountovf'), # Sscofpmf
+
# Tentative CSR assignment for CLIC
(0x007, 'utvt'),
(0x045, 'unxti'),
@@ -395,6 +398,35 @@ csrs32 = [
(0x31D, 'mstateen1h'), # Smstateen
(0x31E, 'mstateen2h'), # Smstateen
(0x31F, 'mstateen3h'), # Smstateen
+ (0x723, 'mhpmevent3h'), # Sscofpmf
+ (0x724, 'mhpmevent4h'), # Sscofpmf
+ (0x725, 'mhpmevent5h'), # Sscofpmf
+ (0x726, 'mhpmevent6h'), # Sscofpmf
+ (0x727, 'mhpmevent7h'), # Sscofpmf
+ (0x728, 'mhpmevent8h'), # Sscofpmf
+ (0x729, 'mhpmevent9h'), # Sscofpmf
+ (0x72A, 'mhpmevent10h'), # Sscofpmf
+ (0x72B, 'mhpmevent11h'), # Sscofpmf
+ (0x72C, 'mhpmevent12h'), # Sscofpmf
+ (0x72D, 'mhpmevent13h'), # Sscofpmf
+ (0x72E, 'mhpmevent14h'), # Sscofpmf
+ (0x72F, 'mhpmevent15h'), # Sscofpmf
+ (0x730, 'mhpmevent16h'), # Sscofpmf
+ (0x731, 'mhpmevent17h'), # Sscofpmf
+ (0x732, 'mhpmevent18h'), # Sscofpmf
+ (0x733, 'mhpmevent19h'), # Sscofpmf
+ (0x734, 'mhpmevent20h'), # Sscofpmf
+ (0x735, 'mhpmevent21h'), # Sscofpmf
+ (0x736, 'mhpmevent22h'), # Sscofpmf
+ (0x737, 'mhpmevent23h'), # Sscofpmf
+ (0x738, 'mhpmevent24h'), # Sscofpmf
+ (0x739, 'mhpmevent25h'), # Sscofpmf
+ (0x73A, 'mhpmevent26h'), # Sscofpmf
+ (0x73B, 'mhpmevent27h'), # Sscofpmf
+ (0x73C, 'mhpmevent28h'), # Sscofpmf
+ (0x73D, 'mhpmevent29h'), # Sscofpmf
+ (0x73E, 'mhpmevent30h'), # Sscofpmf
+ (0x73F, 'mhpmevent31h'), # Sscofpmf
(0x757, 'mseccfgh'),
(0xB80, 'mcycleh'),
(0xB82, 'minstreth'),