From b2281365ec8c4470fd78f2fdb3987b76659c01db Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 30 Aug 2022 10:08:52 +0300 Subject: [PATCH] power_insn: fix representation --- src/openpower/decoder/power_insn.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index b06bbbe3..b4ce51c6 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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: -- 2.30.2