diff mbox

[PULL,06/23] target-m68k: set disassembler mode to 680x0 or coldfire

Message ID 1477422199-11208-7-git-send-email-laurent@vivier.eu (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Vivier Oct. 25, 2016, 7:03 p.m. UTC
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
---
 target-m68k/cpu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/target-m68k/cpu.c b/target-m68k/cpu.c
index 800e8f0..f925e26 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 */