summary refs log tree commit diff stats
path: root/target-i386/helper2.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-i386/helper2.c')
-rw-r--r--target-i386/helper2.c3
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;