aboutsummaryrefslogtreecommitdiff
path: root/disas
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2024-03-05 12:10:03 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-03-06 12:35:51 +0000
commit7cff154b48d5ce64b6d65388c43a9a818672ec00 (patch)
treee5b3d2696a2870e9c3252c7258c2ee5b95f07d91 /disas
parent83b4613ba835d6ed6dcee3001c7fc56dc7b21685 (diff)
downloadqemu-7cff154b48d5ce64b6d65388c43a9a818672ec00.zip
qemu-7cff154b48d5ce64b6d65388c43a9a818672ec00.tar.gz
qemu-7cff154b48d5ce64b6d65388c43a9a818672ec00.tar.bz2
disas/hppa: honour show_opcodes
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240305121005.3528075-28-alex.bennee@linaro.org>
Diffstat (limited to 'disas')
-rw-r--r--disas/hppa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/disas/hppa.c b/disas/hppa.c
index 22dce9b..49e2231 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)
{