From 11774f549e2a85ddeb5b99a16bc3a31a0e753565 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 21 Mar 2004 18:28:57 +0000 Subject: protected lret x86 'bug' emulation git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@678 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-i386/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-i386') diff --git a/target-i386/helper.c b/target-i386/helper.c index d08de8a8b4..3d44cc86b6 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1679,7 +1679,7 @@ static inline void helper_ret_protected(int shift, int is_iret, int addend) ss_e2); cpu_x86_set_cpl(env, rpl); sp = new_esp; - /* XXX: change sp_mask according to old segment ? */ + sp_mask = get_sp_mask(ss_e2); /* validate data segments */ validate_seg(R_ES, cpl); -- cgit v1.2.3