sv_binutils: add missing include directives
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 16 Jan 2022 18:09:35 +0000 (18:09 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 16 Jan 2022 18:51:29 +0000 (18:51 +0000)
src/openpower/sv/sv_binutils.py

index a6c97d946b4bb05cb7c245a31e0715c39a96de04..9cce744d3da9963afcc0453e68b193811ba3602b 100644 (file)
@@ -243,6 +243,9 @@ class Codegen(_enum.Enum):
             yield f"#define {self.name}"
             yield ""
 
+            yield "#include <stdint.h>"
+            yield ""
+
             yield from Opcode.c_decl()
             yield ""
 
@@ -269,6 +272,9 @@ class Codegen(_enum.Enum):
             yield from DISCLAIMER
             yield ""
 
+            yield "#include \"ppc-opc-svp64.h\""
+            yield ""
+
             yield "const struct svp64_entry svp64_entries[] = {{"
             for (index, entry) in enumerate(entries):
                 yield from indent(entry.c_value(prefix=f"[{index}] = ", suffix=","))