Commit 3802ce26a1b60fe791aee1ff3e15ab6dc0bdac27

Authored by bellard
1 parent 4abe615b

set to protected mode


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@337 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 0 deletions
linux-user/main.c
... ... @@ -433,6 +433,8 @@ int main(int argc, char **argv)
433 433 env->user_mode_only = 1;
434 434  
435 435 #if defined(TARGET_I386)
  436 + env->cr[0] = CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK;
  437 +
436 438 /* linux register setup */
437 439 env->regs[R_EAX] = regs->eax;
438 440 env->regs[R_EBX] = regs->ebx;
... ...