From: Dmitry Selyutin Date: Sun, 14 Jan 2024 13:34:36 +0000 (+0300) Subject: oppc/code: rename oppc_int to oppc_value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a748b8164fae8191e4b967c493c7bb8fcde9f472;p=openpower-isa.git oppc/code: rename oppc_int to oppc_value --- diff --git a/src/openpower/oppc/pc_code.py b/src/openpower/oppc/pc_code.py index d18bd140..c0e8ca17 100644 --- a/src/openpower/oppc/pc_code.py +++ b/src/openpower/oppc/pc_code.py @@ -14,7 +14,7 @@ class Transient(pc_ast.Node): return super().__init__() def __str__(self): - return f"oppc_transient(&(struct oppc_int){{}}, {self.__value}, {self.__bits})" + return f"oppc_transient(&(struct oppc_value){{}}, {self.__value}, {self.__bits})" class CCall(pc_ast.Dataclass): @@ -40,7 +40,7 @@ class CodeVisitor(pc_util.Visitor): self.__code[self.__header].emit(stmt=f"oppc_{name}(void) {{") with self.__code[self.__header]: for decl in self.__decls: - self.__code[self.__header].emit(stmt=f"struct oppc_int {decl};") + self.__code[self.__header].emit(stmt=f"struct oppc_value {decl};") self.__code[self.__footer].emit(stmt=f"}}") def __iter__(self):