From: Jacob Lifshay Date: Fri, 26 Aug 2022 08:46:41 +0000 (-0700) Subject: add original instruction as a comment, improving debuggability X-Git-Tag: sv_maxu_works-initial~88 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56693c73d68c9eddbebb3753f3e12572f03d15b1;p=openpower-isa.git add original instruction as a comment, improving debuggability --- diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index a9fe231b..31d5f060 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -640,9 +640,9 @@ class SVP64Asm: custom_insn_hook = CUSTOM_INSNS.get(opcode) if custom_insn_hook is not None: fields = tuple(map(to_number, fields)) - insn = custom_insn_hook(fields) - log(opcode, bin(insn)) - yield ".long 0x%x" % insn + insn_num = custom_insn_hook(fields) + log(opcode, bin(insn_num)) + yield ".long 0x%X # %s" % (insn_num, insn) return # identify if is a svp64 mnemonic