From e86a930495a9b66db8038e86e57fae71a300ab55 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Wed, 21 Sep 2022 18:07:01 +0300 Subject: [PATCH] sv_binutils: support opcodes offset representation --- src/openpower/sv/sv_binutils.py | 3 +++ 1 file changed, 3 insertions(+) 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}" -- 2.30.2