oppc/code: introduce insn argument
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 14 Jan 2024 18:57:13 +0000 (21:57 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000 (22:10 +0300)
src/openpower/oppc/pc_code.py

index cfc3ddfc834d662de82bfce52883686796fde18b..939bcae88108ae279d33be01d89166a853514fa9 100644 (file)
@@ -39,7 +39,7 @@ class CodeVisitor(pc_util.Visitor):
         super().__init__(root=root)
 
         self.__code[self.__header].emit(stmt="void")
-        self.__code[self.__header].emit(stmt=f"oppc_{insn.name}(void) {{")
+        self.__code[self.__header].emit(stmt=f"oppc_{insn.name}(struct oppc_value const *insn) {{")
         with self.__code[self.__header]:
             for decl in self.__decls:
                 self.__code[self.__header].emit(stmt=f"struct oppc_value {decl};")