power_insn: fix repr for opcode mask and value
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 6 Nov 2022 09:29:55 +0000 (12:29 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Jun 2023 18:51:16 +0000 (19:51 +0100)
src/openpower/decoder/power_insn.py

index 1eabff0331040ea5aab6731b3a9459e0decd807f..4c51a09b0051f67166a062c0036b6010a82cf250 100644 (file)
@@ -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}"