Commit 11774f549e2a85ddeb5b99a16bc3a31a0e753565

Authored by bellard
1 parent d9d849fc

protected lret x86 'bug' emulation


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@678 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-i386/helper.c
... ... @@ -1679,7 +1679,7 @@ static inline void helper_ret_protected(int shift, int is_iret, int addend)
1679 1679 ss_e2);
1680 1680 cpu_x86_set_cpl(env, rpl);
1681 1681 sp = new_esp;
1682   - /* XXX: change sp_mask according to old segment ? */
  1682 + sp_mask = get_sp_mask(ss_e2);
1683 1683  
1684 1684 /* validate data segments */
1685 1685 validate_seg(R_ES, cpl);
... ...