aboutsummaryrefslogtreecommitdiff
path: root/target-m68k/cpu.c
diff options
context:
space:
mode:
authorLaurent Vivier <laurent@vivier.eu>2011-09-17 21:21:07 +0200
committerLaurent Vivier <laurent@vivier.eu>2016-10-25 20:54:47 +0200
commit4d558f5d580187d594c46b2d449445600d7c7953 (patch)
tree008a071e0c609020432462e940b4c49590be0e64 /target-m68k/cpu.c
parent28b68cd79ef01e8b1f5bd26718cd8c09a12c625f (diff)
target-m68k: set disassembler mode to 680x0 or coldfire
Signed-off-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-m68k/cpu.c')
-rw-r--r--target-m68k/cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c
index 800e8f0e58..f925e265b0 100644
--- a/target-m68k/cpu.c
+++ b/target-m68k/cpu.c
@@ -64,9 +64,14 @@ static void m68k_cpu_reset(CPUState *s)
tlb_flush(s, 1);
}
-static void m68k_cpu_disas_set_info(CPUState *cpu, disassemble_info *info)
+static void m68k_cpu_disas_set_info(CPUState *s, disassemble_info *info)
{
+ M68kCPU *cpu = M68K_CPU(s);
+ CPUM68KState *env = &cpu->env;
info->print_insn = print_insn_m68k;
+ if (m68k_feature(env, M68K_FEATURE_M68000)) {
+ info->mach = bfd_mach_m68040;
+ }
}
/* CPU models */