aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-21 22:55:02 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-21 22:55:02 +0000
commitd6eb40f6509657a03842daffbb4bd7a54c9f4ffb (patch)
tree2d6ef035f90ece59bb81029b9adf6d0f0cd961fb /linux-user
parent4f2b1fe82109e08a83913a44f074d8eb3214fd64 (diff)
Hack to keep wine happy, by Alexander Graf.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2993 c046a42c-6fe2-441c-8c8c-71466251a162
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 7df24c5a74..fe2cc5817e 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1933,6 +1933,8 @@ int main(int argc, char **argv)
cpu_x86_load_seg(env, R_FS, __USER_DS);
cpu_x86_load_seg(env, R_GS, __USER_DS);
+ /* This hack makes Wine work... */
+ env->segs[R_FS].selector = 0;
#elif defined(TARGET_ARM)
{
int i;