From: Alex Bennée Date: Tue, 5 Mar 2024 12:10:03 +0000 (+0000) Subject: disas/hppa: honour show_opcodes X-Git-Tag: v9.0.0-rc0~32^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cff154b48d5ce64b6d65388c43a9a818672ec00;p=thirdparty%2Fqemu.git disas/hppa: honour show_opcodes Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20240305121005.3528075-28-alex.bennee@linaro.org> --- diff --git a/disas/hppa.c b/disas/hppa.c index 22dce9b41bb..49e2231ae62 100644 --- a/disas/hppa.c +++ b/disas/hppa.c @@ -1972,9 +1972,11 @@ print_insn_hppa (bfd_vma memaddr, disassemble_info *info) insn = bfd_getb32 (buffer); - info->fprintf_func(info->stream, " %02x %02x %02x %02x ", - (insn >> 24) & 0xff, (insn >> 16) & 0xff, - (insn >> 8) & 0xff, insn & 0xff); + if (info->show_opcodes) { + info->fprintf_func(info->stream, " %02x %02x %02x %02x ", + (insn >> 24) & 0xff, (insn >> 16) & 0xff, + (insn >> 8) & 0xff, insn & 0xff); + } for (i = 0; i < NUMOPCODES; ++i) {