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
This commit is contained in:
parent
289e09e77b
commit
fd836909df
|
@ -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_FS, new_fs & 0xffff);
|
||||||
load_seg_vm(R_GS, new_gs & 0xffff);
|
load_seg_vm(R_GS, new_gs & 0xffff);
|
||||||
|
|
||||||
env->eip = new_eip;
|
env->eip = new_eip & 0xffff;
|
||||||
ESP = new_esp;
|
ESP = new_esp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue