From 0ebb5309c2747c44cbc835fb0abd8224d886da33 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 10 Sep 2022 08:43:06 +0300 Subject: [PATCH] power_insn: tune TargetAddrOperand disassembly --- src/openpower/decoder/power_insn.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 5777ce3c..f3003527 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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)))) -- 2.30.2