sh4 disasm fixes
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 <damm@opensource.se> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
b785e4768b
commit
b4e1f07747
3
disas.c
3
disas.c
|
@ -393,6 +393,9 @@ void monitor_disas(Monitor *mon, CPUState *env,
|
||||||
#else
|
#else
|
||||||
print_insn = print_insn_little_mips;
|
print_insn = print_insn_little_mips;
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(TARGET_SH4)
|
||||||
|
disasm_info.mach = bfd_mach_sh4;
|
||||||
|
print_insn = print_insn_sh;
|
||||||
#else
|
#else
|
||||||
monitor_printf(mon, "0x" TARGET_FMT_lx
|
monitor_printf(mon, "0x" TARGET_FMT_lx
|
||||||
": Asm output not supported on this arch\n", pc);
|
": Asm output not supported on this arch\n", pc);
|
||||||
|
|
|
@ -2065,7 +2065,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_info *info)
|
||||||
}
|
}
|
||||||
if ((*info->symbol_at_address_func) (val, info))
|
if ((*info->symbol_at_address_func) (val, info))
|
||||||
{
|
{
|
||||||
fprintf_fn (stream, "\t! 0x");
|
fprintf_fn (stream, "\t! ");
|
||||||
(*info->print_address_func) (val, info);
|
(*info->print_address_func) (val, info);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue