diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-08-21 23:25:21 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-08-21 23:25:21 +0000 |
commit | 2e255c6b9f05f78a7effc4d1246c8a420680b810 (patch) | |
tree | d625e0135002840792a12df47189d5193209d800 /linux-user | |
parent | 3f3373166227b13e762e20d2fb51eadfa6a2d653 (diff) |
faster and more accurate segment handling
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@373 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 b85637f8bf..f4c936c5bc 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) + cpu_x86_set_cpl(env, 3); + env->cr[0] = CR0_PG_MASK | CR0_WP_MASK | CR0_PE_MASK; /* linux register setup */ |