power_insn: fix coding style
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 18:37:44 +0000 (21:37 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 18 Sep 2022 18:45:25 +0000 (21:45 +0300)
src/openpower/decoder/power_insn.py

index c6e27cab34c43d797d06a855b6dbd06362bf416c..05c6485654fb99080c9530f771ad405c3530613d 100644 (file)
@@ -1800,12 +1800,13 @@ class RM(BaseRM):
 
         elif record.svp64.mode is _SVMode.BRANCH:
             # just mode 5-bit. could be reduced down to 2, oh well.
-            #         mode       mask   action(getattr)
-            table = [(0b00000, 0b11000, "simple"), # simple
-                     (0b01000, 0b11000, "vls"),    # VLset
-                     (0b10000, 0b11000, "ctr"),    # CTR mode
-                     (0b11000, 0b11000, "ctrvls"), # CTR+VLset mode
-                    ]
+            #    mode     mask     member
+            table = (
+                (0b00000, 0b11000, "simple"), # simple
+                (0b01000, 0b11000, "vls"),    # VLset
+                (0b10000, 0b11000, "ctr"),    # CTR mode
+                (0b11000, 0b11000, "ctrvls"), # CTR+VLset mode
+            )
             # slightly weird: doesn't have a 5-bit "mode" field like others
             search = int(rm[19:23])