power_enums: simplify reg string conversion
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:18:59 +0000 (12:18 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 4 Jun 2023 09:30:53 +0000 (12:30 +0300)
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 = (