projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
460d140
)
move Regfile enums here
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Apr 2021 15:54:41 +0000
(16:54 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 23 Apr 2021 15:54:41 +0000
(16:54 +0100)
src/openpower/consts.py
patch
|
blob
|
history
diff --git
a/src/openpower/consts.py
b/src/openpower/consts.py
index 31fdb136a5a504584a37263898c9ab00b3d1153f..91a9b502a5595eb102b072487e82cac167eb30c4 100644
(file)
--- a/
src/openpower/consts.py
+++ b/
src/openpower/consts.py
@@
-288,6
+288,7
@@
class StateRegsEnum:
PC = 0
MSR = 1
SVSTATE = 2
+ N_REGS = 3 # maximum number of regs
# Fast SPRs Regfile
class FastRegsEnum:
@@
-306,3
+307,4
@@
class XERRegsEnum:
SO=0 # this is actually 2-bit but we ignore 1 bit of it
CA=1 # CA and CA32
OV=2 # OV and OV32
+ N_REGS = 3 # maximum number of regs