projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
886d5c6
)
power_insn: fix paired registers disassembly
author
Dmitry Selyutin
<ghostmansd@gmail.com>
Wed, 18 Jan 2023 19:58:00 +0000
(22:58 +0300)
committer
Dmitry Selyutin
<ghostmansd@gmail.com>
Thu, 19 Jan 2023 07:34:23 +0000
(10:34 +0300)
src/openpower/decoder/power_insn.py
patch
|
blob
|
history
diff --git
a/src/openpower/decoder/power_insn.py
b/src/openpower/decoder/power_insn.py
index a87a029f1be4f3402528637962f24d63388ce8ae..f65fe3ad91b5b93fb3639086537b5fb7673a74eb 100644
(file)
--- a/
src/openpower/decoder/power_insn.py
+++ b/
src/openpower/decoder/power_insn.py
@@
-1756,7
+1756,14
@@
class WordInstruction(Instruction):
yield f"{blob}.long 0x{int(self):08x}"
return
- if style <= Style.LEGACY and record.ppc.unofficial:
+ paired = False
+ if style is Style.LEGACY:
+ paired = False
+ for (op_cls, _) in record.dynamic_operands:
+ if issubclass(op_cls, (GPRPairOperand, FPRPairOperand)):
+ paired = True
+
+ if style is Style.LEGACY and (paired or record.ppc.unofficial):
yield f"{blob}.long 0x{int(self):08x}"
else:
operands = tuple(map(_operator.itemgetter(1),