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:
f8ca9bb
)
power_enums: simplify sel type string conversion
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:21:57 +0000
(12:21 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:34:28 +0000
(12:34 +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 1e512d8a9d70abcaae55c86a8f0faf148df25ab3..44555ea2dffec8a97db8189834c3bf271f915115 100644
(file)
--- a/
src/openpower/decoder/power_enums.py
+++ b/
src/openpower/decoder/power_enums.py
@@
-972,11
+972,11
@@
class SelType(Enum):
SRC = 's'
DST = 'd'
- def __
rep
r__(self):
+ def __
st
r__(self):
return {
SelType.NONE: "NONE",
- SelType.SRC: "
src
",
- SelType.DST: "
dst
",
+ SelType.SRC: "
SRC
",
+ SelType.DST: "
DST
",
}[self]