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)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 15 Jan 2023 19:47:22 +0000 (22:47 +0300)
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}"