Index: trunk/src/recompiler/target-i386/op_helper.c =================================================================== --- a/trunk/src/recompiler/target-i386/op_helper.c +++ b/trunk/src/recompiler/target-i386/op_helper.c @@ -902,4 +902,11 @@ switch(type) { case 5: /* task gate */ +#ifdef VBOX + dpl = (e2 >> DESC_DPL_SHIFT) & 3; + cpl = env->hflags & HF_CPL_MASK; + /* check privilege if software int */ + if (is_int && dpl < cpl) + raise_exception_err(EXCP0D_GPF, intno * 8 + 2); +#endif /* must do that check here to return the correct error code */ if (!(e2 & DESC_P_MASK))