power_enums: change SVExtra representation
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 May 2023 16:31:11 +0000 (19:31 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 1 Jun 2023 18:38:44 +0000 (21:38 +0300)
src/openpower/decoder/power_enums.py

index 242b3a86b221fad73a92d6fbfd909cf3fb565093..56518d86c0f1086a14ef6631d71b07589132b755 100644 (file)
@@ -241,12 +241,12 @@ class SVExtra(Enum):
 
     def __repr__(self):
         return {
-            SVExtra.NONE: "NONE",
-            SVExtra.Idx0: "[0]",
-            SVExtra.Idx1: "[1]",
-            SVExtra.Idx2: "[2]",
-            SVExtra.Idx3: "[3]",
-            SVExtra.Idx_1_2: "[1:2]",
+            SVExtra.NONE: "none",
+            SVExtra.Idx0: "extra0",
+            SVExtra.Idx1: "extra1",
+            SVExtra.Idx2: "extra2",
+            SVExtra.Idx3: "extra3",
+            SVExtra.Idx_1_2: "extra1/extra2",
         }[self]
 
 # Backward compatibility