From 56693c73d68c9eddbebb3753f3e12572f03d15b1 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 26 Aug 2022 01:46:41 -0700 Subject: [PATCH] add original instruction as a comment, improving debuggability --- src/openpower/sv/trans/svp64.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2