From 6fde9edaad8133e366dc56ca6da2f6abad0f0dc9 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sun, 6 Nov 2022 12:29:55 +0300 Subject: [PATCH] power_insn: fix repr for opcode mask and value --- src/openpower/decoder/power_insn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 1eabff03..4c51a09b 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -125,7 +125,7 @@ class Opcode: return super().__new__(cls, value) def __str__(self): - return super().__repr__() + return self.__repr__() def __repr__(self): return f"{self:0{self.bit_length()}b}" -- 2.30.2