From: Dmitry Selyutin Date: Sat, 10 Sep 2022 05:43:06 +0000 (+0300) Subject: power_insn: tune TargetAddrOperand disassembly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0ebb5309c2747c44cbc835fb0abd8224d886da33;p=openpower-isa.git power_insn: tune TargetAddrOperand disassembly --- 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))))