mirror of https://github.com/xqemu/xqemu.git
protected lret x86 'bug' emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@678 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d9d849fc5d
commit
11774f549e
|
@ -1679,7 +1679,7 @@ static inline void helper_ret_protected(int shift, int is_iret, int addend)
|
||||||
ss_e2);
|
ss_e2);
|
||||||
cpu_x86_set_cpl(env, rpl);
|
cpu_x86_set_cpl(env, rpl);
|
||||||
sp = new_esp;
|
sp = new_esp;
|
||||||
/* XXX: change sp_mask according to old segment ? */
|
sp_mask = get_sp_mask(ss_e2);
|
||||||
|
|
||||||
/* validate data segments */
|
/* validate data segments */
|
||||||
validate_seg(R_ES, cpl);
|
validate_seg(R_ES, cpl);
|
||||||
|
|
Loading…
Reference in New Issue