oppc/code: prefix TRAP call
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/pc_code.py

index 50a6444603d6fa16a9d8c77c12e00a3779f3ac81..ff8d60063e306207e5288832d2172b29ffcb0744 100644 (file)
@@ -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)