power_enums: simplify reg string conversion
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:18:59 +0000 (12:18 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:19 +0000 (19:26 +0000)
src/openpower/decoder/power_enums.py

index 7285bd7634bf40db9f26b1915073a633800992c8..7c2eab5c9eb51a00d096b13142b2e7906e5eef55 100644 (file)
@@ -287,6 +287,9 @@ class Reg(Enum):
     FRSp = auto()
     FRTp = auto()
 
+    def __str__(self):
+        return self.name
+
     @classmethod
     def _missing_(cls, desc):
         selectors = (