diff options
author | Peter Crosthwaite <crosthwaitepeter@gmail.com> | 2015-07-11 19:00:00 -0700 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-10-22 15:49:40 +0200 |
commit | 4f669905d95bbb6296338f9e86ffcdd8eae453d2 (patch) | |
tree | 1148092877de4ae319f7b761e514d21412977368 /disas.c | |
parent | 9f87a4cacd397e82e80c9512627ce5e190dfa971 (diff) |
disas: QOMify m68k specific disas setup
Move the target_disas() m68k 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>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'disas.c')
-rw-r--r-- | disas.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -235,8 +235,6 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code, } s.info.disassembler_options = (char *)"any"; s.info.print_insn = print_insn_ppc; -#elif defined(TARGET_M68K) - s.info.print_insn = print_insn_m68k; #elif defined(TARGET_MIPS) #ifdef TARGET_WORDS_BIGENDIAN s.info.print_insn = print_insn_big_mips; @@ -445,8 +443,6 @@ void monitor_disas(Monitor *mon, CPUState *cpu, s.info.endian = BFD_ENDIAN_LITTLE; } s.info.print_insn = print_insn_ppc; -#elif defined(TARGET_M68K) - s.info.print_insn = print_insn_m68k; #elif defined(TARGET_MIPS) #ifdef TARGET_WORDS_BIGENDIAN s.info.print_insn = print_insn_big_mips; |