From 06d9ae53f5844300aefa4de4970ee5f480052ca2 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 16 Jan 2024 22:09:45 +0300 Subject: [PATCH] oppc/code: translate None to NULL --- src/openpower/oppc/pc_code.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index df5fa319..4a396e21 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -649,7 +649,9 @@ class CodeVisitor(pc_util.Visitor): var = str(node) if var not in ("fallthrough",): if var in ("TRAP",): - self[node].emit(stmt=f"OPPC_CALL_{var}();") + self[node].emit(stmt=f"OPPC_CALL_{var}0();") + elif var == "None": + self[node].emit(stmt=f"NULL") else: if node in self.__pseudocode: self.__vars.add(var) -- 2.30.2