From: Dmitry Selyutin Date: Tue, 16 Jan 2024 19:09:45 +0000 (+0300) Subject: oppc/code: translate None to NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06d9ae53f5844300aefa4de4970ee5f480052ca2;p=openpower-isa.git oppc/code: translate None to NULL --- 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)