diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-26 18:02:28 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-07-26 18:02:28 +0000 |
commit | 3802ce26a1b60fe791aee1ff3e15ab6dc0bdac27 (patch) | |
tree | f6835ba57af42cf0743c43f6fe216fd0dea7fda6 /linux-user | |
parent | 4abe615b841f5f992440fc8ed5b496b1b22c655b (diff) |
set to protected mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@337 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 2f341d92c9..b85637f8bf 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -433,6 +433,8 @@ int main(int argc, char **argv) env->user_mode_only = 1; #if defined(TARGET_I386) + env->cr[0] = CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK; + /* linux register setup */ env->regs[R_EAX] = regs->eax; env->regs[R_EBX] = regs->ebx; |