power_insn: tune TargetAddrOperand disassembly
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Sep 2022 05:43:06 +0000 (08:43 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sat, 10 Sep 2022 06:26:01 +0000 (09:26 +0300)
src/openpower/decoder/power_insn.py

index 5777ce3ca52b08fa15ab2f8d1a2538c5442e3bc4..f3003527adff191eddfccee0c1dc56a04f411dd8 100644 (file)
@@ -737,10 +737,10 @@ class TargetAddrOperand(RegisterOperand):
 
         if verbosity >= Verbosity.VERBOSE:
             span = tuple(map(str, span))
-            yield f"{indent}{self.name}"
-            yield f"{indent}{indent}{int(value):0{value.bits}b}00"
-            yield f"{indent}{indent}{', '.join(span + ('{0}', '{0}'))}"
-            yield f"{indent}{indent}target_addr = EXTS({field} || 0b00))"
+            yield f"{indent}{self.name} = EXTS({field} || 0b00))"
+            yield f"{indent}{indent}{field}"
+            yield f"{indent}{indent}{indent}{int(value):0{value.bits}b}00"
+            yield f"{indent}{indent}{indent}{', '.join(span + ('{0}', '{0}'))}"
         else:
             yield hex(int(_selectconcat(value,
                 _SelectableInt(value=0b00, bits=2))))