power_enum: tune SVEtype representation
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 5 Sep 2022 18:35:33 +0000 (21:35 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 6 Sep 2022 11:44:56 +0000 (14:44 +0300)
src/openpower/decoder/power_enums.py

index cf08672a66cfcc354618ab053af65d4f98d9f958..4a8add835994bcafad9e864d81f87bfaa6c1c71b 100644 (file)
@@ -199,6 +199,9 @@ class SVEtype(Enum):
     EXTRA2 = 1
     EXTRA3 = 2
 
+    def __repr__(self):
+        return self.name
+
 
 @unique
 class SVExtra(Enum):