diff options
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target-i386/helper2.c b/target-i386/helper2.c index 06c732edce..0d5f439d1b 100644 --- a/target-i386/helper2.c +++ b/target-i386/helper2.c @@ -331,7 +331,8 @@ int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr, printf("MMU fault: addr=0x%08x w=%d u=%d eip=%08x\n", addr, is_write, is_user, env->eip); #endif - + is_write &= 1; + if (env->user_mode_only) { /* user mode only emulation */ error_code = 0; |