diff options
author | Peter Crosthwaite <crosthwaitepeter@gmail.com> | 2015-07-11 19:00:03 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-10-22 15:49:40 +0200 |
commit | d49dd523e459a4c001a0c87a438fd2fa1f5b4bae (patch) | |
tree | 05b19cd7381891f69690a548e0753d220cdff851 /disas.c | |
parent | 20984673e68ebd069222512c876b846ff2425cc0 (diff) | |
download | qemu-d49dd523e459a4c001a0c87a438fd2fa1f5b4bae.zip qemu-d49dd523e459a4c001a0c87a438fd2fa1f5b4bae.tar.gz qemu-d49dd523e459a4c001a0c87a438fd2fa1f5b4bae.tar.bz2 |
disas: QOMify sh4 specific disas setup
Move the target_disas() sh4 specifics to the CPUClass::disas_set_info()
hook and delete the #ifdef specific code in disas.c.
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'disas.c')
-rw-r--r-- | disas.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -236,9 +236,6 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code, #else s.info.print_insn = print_insn_little_mips; #endif -#elif defined(TARGET_SH4) - s.info.mach = bfd_mach_sh4; - s.info.print_insn = print_insn_sh; #elif defined(TARGET_ALPHA) s.info.mach = bfd_mach_alpha_ev6; s.info.print_insn = print_insn_alpha; @@ -436,9 +433,6 @@ void monitor_disas(Monitor *mon, CPUState *cpu, #else s.info.print_insn = print_insn_little_mips; #endif -#elif defined(TARGET_SH4) - s.info.mach = bfd_mach_sh4; - s.info.print_insn = print_insn_sh; #endif if (!s.info.print_insn) { monitor_printf(mon, "0x" TARGET_FMT_lx |