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:
c45f18c
)
power_enums: simplify extra idx string conversion
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:20:26 +0000
(12:20 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:32:00 +0000
(12:32 +0300)
src/openpower/decoder/power_enums.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/power_enums.py
b/src/openpower/decoder/power_enums.py
index 95cc4ae94e9b078dc70c5e5eec2e182b688d2d2d..1e512d8a9d70abcaae55c86a8f0faf148df25ab3 100644
(file)
--- a/
src/openpower/decoder/power_enums.py
+++ b/
src/openpower/decoder/power_enums.py
@@
-239,14
+239,14
@@
class SVExtra(Enum):
Idx3 = 4
Idx_1_2 = 5 # due to weird BA/BB for crops
- def __
rep
r__(self):
+ def __
st
r__(self):
return {
SVExtra.NONE: "NONE",
- SVExtra.Idx0: "
extra
0",
- SVExtra.Idx1: "
extra
1",
- SVExtra.Idx2: "
extra
2",
- SVExtra.Idx3: "
extra
3",
- SVExtra.Idx_1_2: "
extra1/extra
2",
+ SVExtra.Idx0: "
EXTRA
0",
+ SVExtra.Idx1: "
EXTRA
1",
+ SVExtra.Idx2: "
EXTRA
2",
+ SVExtra.Idx3: "
EXTRA
3",
+ SVExtra.Idx_1_2: "
EXTRA1/EXTRA
2",
}[self]
# Backward compatibility