summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--exec-all.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec-all.h b/exec-all.h
index b7c0ad8601..5e809b0b78 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -615,7 +615,8 @@ static inline int kqemu_is_ok(CPUState *env)
            (env->eflags & IOPL_MASK) != IOPL_MASK &&
            (env->cr[0] & CR0_PE_MASK) && 
            (env->eflags & IF_MASK) &&
-           !(env->eflags & VM_MASK));
+           !(env->eflags & VM_MASK) &&
+           (env->ldt.limit == 0 || env->ldt.limit == 0x27));
 }
 
 #endif