From: Dmitry Selyutin Date: Wed, 20 Apr 2022 09:36:56 +0000 (+0000) Subject: sv_binutils: allow to instantiate integers from symbols X-Git-Tag: sv_maxu_works-initial~474 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd2a5148b6a49fd86790f7b8c762371d593c29f5;p=openpower-isa.git sv_binutils: allow to instantiate integers from symbols --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index a58bb9b1..24dfe2b0 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -195,7 +195,7 @@ class Struct(CType, metaclass=StructMeta): yield f"}}{suffix}" -class Integer(CType, int): +class Integer(CType, str): def c_value(self, prefix="", suffix=""): yield f"{prefix}{self}{suffix}"