diff options
Diffstat (limited to 'target-i386/helper.c')
-rw-r--r-- | target-i386/helper.c | 2 |
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; } |