Lines Matching defs:DescCS

3010         IEMSELDESC DescCS;
3011 rcStrict = iemMemFetchSelDesc(pIemCpu, &DescCS, uNewCS, X86_XCPT_TS);
3019 if ( !DescCS.Legacy.Gen.u1DescType
3020 || !(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CODE))
3023 DescCS.Legacy.Gen.u1DescType, DescCS.Legacy.Gen.u4Type));
3028 if ( (DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CONF)
3029 && DescCS.Legacy.Gen.u2Dpl > (uNewCS & X86_SEL_RPL))
3031 Log(("iemTaskSwitch: confirming CS DPL > RPL. uNewCS=%#x u4Type=%#x DPL=%u -> #TS\n", uNewCS, DescCS.Legacy.Gen.u4Type,
3032 DescCS.Legacy.Gen.u2Dpl));
3037 if ( !(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CONF)
3038 && DescCS.Legacy.Gen.u2Dpl != (uNewCS & X86_SEL_RPL))
3041 DescCS.Legacy.Gen.u4Type, DescCS.Legacy.Gen.u2Dpl));
3046 if (!DescCS.Legacy.Gen.u1Present)
3052 cbLimit = X86DESC_LIMIT_G(&DescCS.Legacy);
3053 u64Base = X86DESC_BASE(&DescCS.Legacy);
3056 if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_ACCESSED))
3061 DescCS.Legacy.Gen.u4Type |= X86_SEL_TYPE_ACCESSED;
3067 pCtx->cs.Attr.u = X86DESC_GET_HID_ATTR(&DescCS.Legacy);
3314 IEMSELDESC DescCS;
3315 rcStrict = iemMemFetchSelDesc(pIemCpu, &DescCS, NewCS, X86_XCPT_GP); /** @todo correct exception? */
3323 if (!DescCS.Legacy.Gen.u1DescType)
3325 Log(("RaiseXcptOrIntInProtMode %#x - CS=%#x - system selector (%#x) -> #GP\n", u8Vector, NewCS, DescCS.Legacy.Gen.u4Type));
3328 if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CODE))
3330 Log(("RaiseXcptOrIntInProtMode %#x - CS=%#x - data selector (%#x) -> #GP\n", u8Vector, NewCS, DescCS.Legacy.Gen.u4Type));
3339 if (DescCS.Legacy.Gen.u2Dpl > pIemCpu->uCpl)
3342 u8Vector, NewCS, DescCS.Legacy.Gen.u2Dpl, pIemCpu->uCpl));
3347 if (!DescCS.Legacy.Gen.u1Present)
3358 uint32_t cbLimitCS = X86DESC_LIMIT_G(&DescCS.Legacy);
3374 uint8_t const uNewCpl = DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CONF
3375 ? pIemCpu->uCpl : DescCS.Legacy.Gen.u2Dpl;
3481 if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_ACCESSED))
3486 DescCS.Legacy.Gen.u4Type |= X86_SEL_TYPE_ACCESSED;
3551 if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_ACCESSED))
3556 DescCS.Legacy.Gen.u4Type |= X86_SEL_TYPE_ACCESSED;
3570 pCtx->cs.u64Base = X86DESC_BASE(&DescCS.Legacy);
3571 pCtx->cs.Attr.u = X86DESC_GET_HID_ATTR(&DescCS.Legacy);
3677 IEMSELDESC DescCS;
3678 rcStrict = iemMemFetchSelDesc(pIemCpu, &DescCS, NewCS, X86_XCPT_GP);
3686 if (!DescCS.Long.Gen.u1DescType)
3688 Log(("iemRaiseXcptOrIntInLongMode %#x - CS=%#x - system selector (%#x) -> #GP\n", u8Vector, NewCS, DescCS.Legacy.Gen.u4Type));
3691 if ( !DescCS.Long.Gen.u1Long
3692 || DescCS.Long.Gen.u1DefBig
3693 || !(DescCS.Long.Gen.u4Type & X86_SEL_TYPE_CODE) )
3696 u8Vector, NewCS, DescCS.Legacy.Gen.u4Type, DescCS.Long.Gen.u1Long, DescCS.Long.Gen.u1DefBig));
3706 if (DescCS.Legacy.Gen.u2Dpl > pIemCpu->uCpl)
3709 u8Vector, NewCS, DescCS.Legacy.Gen.u2Dpl, pIemCpu->uCpl));
3715 if (!DescCS.Legacy.Gen.u1Present)
3736 uint8_t const uNewCpl = DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_CONF
3737 ? pIemCpu->uCpl : DescCS.Legacy.Gen.u2Dpl;
3786 if (!(DescCS.Legacy.Gen.u4Type & X86_SEL_TYPE_ACCESSED))
3791 DescCS.Legacy.Gen.u4Type |= X86_SEL_TYPE_ACCESSED;
3812 pCtx->cs.u32Limit = X86DESC_LIMIT_G(&DescCS.Legacy);
3813 pCtx->cs.u64Base = X86DESC_BASE(&DescCS.Legacy);
3814 pCtx->cs.Attr.u = X86DESC_GET_HID_ATTR(&DescCS.Legacy);