From 2a3c75dbe8e64032beec5787da2743fb46438c3f Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 16 Jan 2024 22:09:45 +0300 Subject: [PATCH] oppc/code: prefix TRAP call --- 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 50a64446..ff8d6006 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -644,7 +644,7 @@ class CodeVisitor(pc_util.Visitor): decl = str(node) if decl not in ("fallthrough",): if decl in ("TRAP",): - self[node].emit(stmt=f"{decl}();") + self[node].emit(stmt=f"OPPC_CALL_{decl}();") else: if node in self.__pseudocode: self.__decls.add(decl) -- 2.30.2