oppc: emit header include directive
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:09:45 +0000 (22:09 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:08 +0000 (22:10 +0300)
src/openpower/oppc/__main__.py

index 846f3ab82b8e5f1c736bf1fdebc4aa20ce8bacdc..692897128cb671aebac89c0e1eb659650a1c954f 100644 (file)
@@ -30,6 +30,8 @@ for insn in db:
         print(insn.pcode)
         raise exc
 
+print("#include <oppc.h>")
+print()
 for (handler, code) in table.items():
     print("void")
     print(f"{handler}(struct oppc_value const *insn) {{")