From patchwork Fri Nov 13 09:54:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sh4 disasm fixes Date: Thu, 12 Nov 2009 23:54:22 -0000 From: Magnus Damm X-Patchwork-Id: 38352 Message-Id: <20091113095422.29749.77404.sendpatchset@rxone.opensource.se> To: qemu-devel@nongnu.org Cc: From: Magnus Damm Add the sh4 target to the monitor disassembly function, and remove a duplicate "0x" printout from the sh4 dis- assembly code. Signed-off-by: Magnus Damm --- disas.c | 4 ++++ sh4-dis.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) --- 0001/disas.c +++ work/disas.c 2009-11-13 15:32:17.000000000 +0900 @@ -393,6 +393,10 @@ void monitor_disas(Monitor *mon, CPUStat #else print_insn = print_insn_little_mips; #endif +#elif +#elif defined(TARGET_SH4) + disasm_info.mach = bfd_mach_sh4; + print_insn = print_insn_sh; #else monitor_printf(mon, "0x" TARGET_FMT_lx ": Asm output not supported on this arch\n", pc); --- 0001/sh4-dis.c +++ work/sh4-dis.c 2009-11-13 15:31:13.000000000 +0900 @@ -2065,7 +2065,7 @@ print_insn_sh (bfd_vma memaddr, struct d } if ((*info->symbol_at_address_func) (val, info)) { - fprintf_fn (stream, "\t! 0x"); + fprintf_fn (stream, "\t! "); (*info->print_address_func) (val, info); } else