aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/main.c2
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 */