From: Dmitry Selyutin Date: Sun, 14 Jan 2024 18:57:13 +0000 (+0300) Subject: oppc/code: introduce insn argument X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f577ac4d60b1cf6f216e6910ac0ac5250049083f;p=openpower-isa.git oppc/code: introduce insn argument --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index cfc3ddfc..939bcae8 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -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};")