From: Dmitry Selyutin Date: Wed, 21 Sep 2022 15:07:01 +0000 (+0300) Subject: sv_binutils: support opcodes offset representation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e86a930495a9b66db8038e86e57fae71a300ab55;p=openpower-isa.git sv_binutils: support opcodes offset representation --- diff --git a/src/openpower/sv/sv_binutils.py b/src/openpower/sv/sv_binutils.py index f555bea6..b77b8229 100644 --- a/src/openpower/sv/sv_binutils.py +++ b/src/openpower/sv/sv_binutils.py @@ -397,6 +397,9 @@ class Opcodes(Object, c_typedef="const struct svp64_opcode *"): self.__offset = offset return super().__init__() + def __repr__(self): + return f"{self.__class__.__name__}({self.__offset})" + @classmethod def c_var(cls, name, prefix="", suffix=""): return f"{prefix}{cls.c_typedef}{name}{suffix}"