Commit 09d459a1db9b19d1ff66e98620f1ea16aba379de

Authored by bellard
1 parent 108c49b8

temporary work around for 16 bit code in kqemu


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1527 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
exec-all.h
... ... @@ -615,7 +615,8 @@ static inline int kqemu_is_ok(CPUState *env)
615 615 (env->eflags & IOPL_MASK) != IOPL_MASK &&
616 616 (env->cr[0] & CR0_PE_MASK) &&
617 617 (env->eflags & IF_MASK) &&
618   - !(env->eflags & VM_MASK));
  618 + !(env->eflags & VM_MASK) &&
  619 + (env->ldt.limit == 0 || env->ldt.limit == 0x27));
619 620 }
620 621  
621 622 #endif
... ...