Index: qemu-0.9.0/linux-user/main.c =================================================================== --- qemu-0.9.0.orig/linux-user/main.c +++ qemu-0.9.0/linux-user/main.c @@ -1787,6 +1787,7 @@ int main(int argc, char **argv) cpu_x86_load_seg(env, R_FS, __USER_DS); cpu_x86_load_seg(env, R_GS, __USER_DS); + env->segs[R_FS].selector = 0; #elif defined(TARGET_ARM) { int i;