projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f875c40
)
add SPR enum
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 8 Mar 2020 12:53:38 +0000
(12:53 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 8 Mar 2020 12:53:38 +0000
(12:53 +0000)
src/decoder/power_enums.py
patch
|
blob
|
history
diff --git
a/src/decoder/power_enums.py
b/src/decoder/power_enums.py
index f520ee5728568716cfa9f43ba86f1f34a6e1e247..4800bdf210e7f4eee596d3d5e3f1b49e7fb9ea88 100644
(file)
--- a/
src/decoder/power_enums.py
+++ b/
src/decoder/power_enums.py
@@
-206,3
+206,22
@@
class CryIn(Enum):
ZERO = 0
ONE = 1
CA = 2
+
+@unique
+class SPR(Enum):
+ XER = 1
+ LR = 8
+ CTR = 9
+ TB = 268
+ SRR0 = 26
+ SRR1 = 27
+ HSRR0 = 314
+ HSRR1 = 315
+ SPRG0 = 272
+ SPRG1 = 273
+ SPRG2 = 274
+ SPRG3 = 275
+ SPRG3U = 259
+ HSPRG0 = 304
+ HSPRG1 = 305
+