From f577ac4d60b1cf6f216e6910ac0ac5250049083f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 14 Jan 2024 21:57:13 +0300 Subject: [PATCH] oppc/code: introduce insn argument --- src/openpower/oppc/pc_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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};") -- 2.30.2