power_insn: fix representation
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 Aug 2022 07:08:52 +0000 (10:08 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 Aug 2022 07:08:52 +0000 (10:08 +0300)
src/openpower/decoder/power_insn.py

index b06bbbe303f213382b941706684292807e62fb44..b4ce51c62ff44b0082635bbad65daa936e22dbf2 100644 (file)
@@ -612,10 +612,9 @@ class PrefixedInstruction(Instruction):
     def disassemble(self, db):
         record = db[self.suffix]
         if record is None:
-            yield f".long 0x{int(self.prefix):08x}"
-            yield f".long 0x{int(self.suffix):08x}"
+            yield f".llong 0x{int(self):016x}"
         else:
-            yield f".llong 0x{int(self):08x} # {record.name}"
+            yield f".llong 0x{int(self):016x} # {record.name}"
 
 
 class SVP64Instruction(PrefixedInstruction):
@@ -651,9 +650,9 @@ class SVP64Instruction(PrefixedInstruction):
     def disassemble(self, db):
         record = db[self.suffix]
         if record is None:
-            yield f".llong 0x{int(self):08x}"
+            yield f".llong 0x{int(self):016x}"
         else:
-            yield f".llong 0x{int(self):08x} # sv.{record.name}"
+            yield f".llong 0x{int(self):016x} # sv.{record.name}"
 
 
 class Database: