From d65b6e76c0ef80ee9a408841566d39c721a0ecd4 Mon Sep 17 00:00:00 2001 From: Atul Khare Date: Wed, 12 Apr 2023 18:35:18 -0700 Subject: Add Smcntrpmf CSRs Adds mcyclecfg (0x321), minstrefcfg (0x322), mcyclecfgh (0x721), minstretcfgh (0x722). --- constants.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/constants.py b/constants.py index d345454..6678cff 100644 --- a/constants.py +++ b/constants.py @@ -348,6 +348,8 @@ csrs = [ (0xB1D, 'mhpmcounter29'), (0xB1E, 'mhpmcounter30'), (0xB1F, 'mhpmcounter31'), + (0x321, 'mcyclecfg'), + (0x322, 'minstretcfg'), (0x323, 'mhpmevent3'), (0x324, 'mhpmevent4'), (0x325, 'mhpmevent5'), @@ -455,6 +457,8 @@ csrs32 = [ (0x31E, 'mstateen2h'), # Smstateen (0x31F, 'mstateen3h'), # Smstateen (0x354, 'miph'), + (0x721, 'mcyclecfgh'), + (0x722, 'minstretcfgh'), (0x723, 'mhpmevent3h'), # Sscofpmf (0x724, 'mhpmevent4h'), # Sscofpmf (0x725, 'mhpmevent5h'), # Sscofpmf -- cgit v1.1