interrupt to conforming segment fix (QNX boot fix)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Jan 2004 23:46:39 +0000 (23:46 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 19 Jan 2004 23:46:39 +0000 (23:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@573 c046a42c-6fe2-441c-8c8c-71466251a162

target-i386/helper.c

index 07116982709c7a0ddb36a24167e60175db376e9e..320e09a758ee7f3ff476c269183c9d3260634d85 100644 (file)
@@ -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 */