From c169f3dc5d6ddf5d2abb6b186d009dce784341ae Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Mar 2018 23:03:25 -0400 Subject: [PATCH] target/i386: Correct X86_CPU macro parameters in x86_cpu_handle_mmu_fault() in helper.c --- qemu/target/i386/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/target/i386/helper.c b/qemu/target/i386/helper.c index fb0d816d..5f7af94c 100644 --- a/qemu/target/i386/helper.c +++ b/qemu/target/i386/helper.c @@ -533,7 +533,7 @@ void cpu_x86_update_cr4(CPUX86State *env, uint32_t new_cr4) int x86_cpu_handle_mmu_fault(CPUState *cs, vaddr addr, int size, int is_write, int mmu_idx) { - X86CPU *cpu = X86_CPU(cs); + X86CPU *cpu = X86_CPU(cs->uc, cs); CPUX86State *env = &cpu->env; /* user mode only emulation */