sv_binutils: reorder declarations
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 9 Jan 2022 15:40:52 +0000 (15:40 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 9 Jan 2022 16:36:40 +0000 (16:36 +0000)
src/openpower/sv/sv_binutils.py

index f416d0836cddbcd99c749c3d26f1cb7e6533bd04..185d33dccbab815edfcee7d0cf984ed6b82cc452 100644 (file)
@@ -237,19 +237,18 @@ class Codegen(_enum.Enum):
             yield f"#define {self.name}"
             yield ""
 
+            yield from Opcode.c_decl()
+            yield ""
+
             enums = (
-                SVPType, SVEType,
                 In1Sel, In2Sel, In3Sel, OutSel,
                 CRInSel, CROutSel,
-                SVEXTRA,
+                SVPType, SVEType, SVEXTRA,
             )
             for enum in enums:
                 yield from enum.c_decl()
                 yield ""
 
-            yield from Opcode.c_decl()
-            yield ""
-
             yield from Entry.c_decl()
             yield ""