From 1fe99928c853b668096e7df30c9481e12fe2c1c7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Mar 2018 23:04:50 -0400 Subject: [PATCH] target/m68k: Correct M68K_CPU macro parameters in m68k_cpu_handle_mmu_fault in helper.c --- qemu/target/m68k/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;