aboutsummaryrefslogtreecommitdiff
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-11 14:54:42 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-11 14:54:42 +0000
commitfd836909df6cfbb046a6ca0eea92ca7402a83f4e (patch)
tree17f89cc6e76fdb143ded9a8e907f96a0a18b3795 /target-i386/helper.c
parent289e09e77bc4d48dd79798232ecb88a30196c737 (diff)
VM86 EIP masking fix (aka NT5 install fix) (Mike Nordell)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@719 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r--target-i386/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index d7cb6849b4..7e0e777af6 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -1727,7 +1727,7 @@ static inline void helper_ret_protected(int shift, int is_iret, int addend)
load_seg_vm(R_FS, new_fs & 0xffff);
load_seg_vm(R_GS, new_gs & 0xffff);
- env->eip = new_eip;
+ env->eip = new_eip & 0xffff;
ESP = new_esp;
}