Skip to content

Commit

Permalink
target-m68k: set disassembler mode to 680x0 or coldfire
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
vivier committed Oct 25, 2016
1 parent 28b68cd commit 4d558f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion target-m68k/cpu.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 4d558f5

Please sign in to comment.