aboutsummaryrefslogtreecommitdiff
path: root/target-i386
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-19 23:46:39 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-19 23:46:39 +0000
commit4796f5e9bc5efc46d0149bae57b530afd26ff65d (patch)
treefcc4751ed5fd982cc75b64385505bbd9f2852e38 /target-i386
parent3504fe171b62bb0362191e1fd66538ff7c4f4210 (diff)
interrupt to conforming segment fix (QNX boot fix)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@573 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c
index 0711698270..320e09a758 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -686,6 +686,7 @@ static void do_interrupt_protected(int intno, int is_int, int error_code,
sp_mask = get_sp_mask(env->segs[R_SS].flags);
ssp = env->segs[R_SS].base;
esp = ESP;
+ dpl = cpl;
} else {
raise_exception_err(EXCP0D_GPF, selector & 0xfffc);
new_stack = 0; /* avoid warning */