sv_binutils: allow to instantiate integers from symbols
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 20 Apr 2022 09:36:56 +0000 (09:36 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Wed, 20 Apr 2022 12:26:43 +0000 (12:26 +0000)
src/openpower/sv/sv_binutils.py

index a58bb9b1ae579c96f48adc71ec1f9319d52bf9ea..24dfe2b0b420a88a5e0757cd643abb040d17fe92 100644 (file)
@@ -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}"