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:
989e20d
)
power_enums: simplify reg string conversion
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:18:59 +0000
(12:18 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:30:53 +0000
(12:30 +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 7285bd7634bf40db9f26b1915073a633800992c8..7c2eab5c9eb51a00d096b13142b2e7906e5eef55 100644
(file)
--- a/
src/openpower/decoder/power_enums.py
+++ b/
src/openpower/decoder/power_enums.py
@@
-287,6
+287,9
@@
class Reg(Enum):
FRSp = auto()
FRTp = auto()
+ def __str__(self):
+ return self.name
+
@classmethod
def _missing_(cls, desc):
selectors = (