diff --git a/qemu/target/m68k/helper.c b/qemu/target/m68k/helper.c index b84b4dd5..60155e90 100644 --- a/qemu/target/m68k/helper.c +++ b/qemu/target/m68k/helper.c @@ -239,7 +239,7 @@ void m68k_switch_sp(CPUM68KState *env) int m68k_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size, int rw, int mmu_idx) { - M68kCPU *cpu = M68K_CPU(cs); + M68kCPU *cpu = M68K_CPU(cs->uc, cs); cs->exception_index = EXCP_ACCESS; cpu->env.mmu.ar = address;