Home | History | Annotate | Download | only in target-i386

Lines Matching refs:cpl

225     int rpl, dpl, cpl;
234 cpl = env->hflags & HF_CPL_MASK;
247 if (dpl != cpl || dpl != rpl)
255 if (dpl < cpl || dpl < rpl)
458 /* in vm86, CPL is always 3 */
461 /* CPL is set the RPL of CS */
662 int type, dpl, selector, ss_dpl, cpl;
718 cpl = env->hflags & HF_CPL_MASK;
720 if (is_int && dpl < cpl)
735 if (dpl > cpl)
739 if (!(e2 & DESC_C_MASK) && dpl < cpl) {
760 } else if ((e2 & DESC_C_MASK) || dpl == cpl) {
768 dpl = cpl;
887 int type, dpl, selector, cpl, ist;
918 cpl = env->hflags & HF_CPL_MASK;
920 if (is_int && dpl < cpl)
936 if (dpl > cpl)
942 if ((!(e2 & DESC_C_MASK) && dpl < cpl) || ist != 0) {
951 } else if ((e2 & DESC_C_MASK) || dpl == cpl) {
961 dpl = cpl;
1065 int cpl, selector;
1070 cpl = env->hflags & HF_CPL_MASK;
1071 if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) {
1169 int dpl, cpl, shift;
1182 cpl = env->hflags & HF_CPL_MASK;
1184 if (is_int && dpl < cpl)
1226 qemu_log("%6d: v=%02x e=%04x i=%d cpl=%d IP=%04x:" TARGET_FMT_lx " pc=" TARGET_FMT_lx " SP=%04x:" TARGET_FMT_lx,
2120 int cpl, dpl, rpl;
2126 cpl = env->hflags & HF_CPL_MASK;
2131 && (!(env->hflags & HF_CS64_MASK) || cpl == 3)
2157 if (rpl != cpl || dpl != cpl)
2166 if (dpl < cpl || dpl < rpl)
2200 uint32_t e1, e2, cpl, dpl, rpl, limit;
2207 cpl = env->hflags & HF_CPL_MASK;
2214 if (dpl > cpl)
2219 if (rpl > cpl)
2221 if (dpl != cpl)
2230 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl,
2237 cpl = env->hflags & HF_CPL_MASK;
2243 if (dpl < cpl || dpl < rpl)
2251 if ((dpl < cpl) || (dpl < rpl))
2266 if (((e2 & DESC_C_MASK) && (dpl > cpl)) ||
2267 (!(e2 & DESC_C_MASK) && (dpl != cpl)))
2274 cpu_x86_load_seg_cache(env, R_CS, (gate_cs & 0xfffc) | cpl,
2316 uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count;
2328 cpl = env->hflags & HF_CPL_MASK;
2336 if (dpl > cpl)
2341 if (rpl > cpl)
2343 if (dpl != cpl)
2359 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl,
2382 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl,
2395 if (dpl < cpl || dpl < rpl)
2409 if (dpl < cpl || dpl < rpl)
2425 if (dpl > cpl)
2430 if (!(e2 & DESC_C_MASK) && dpl < cpl) {
2554 static inline void validate_seg(int seg_reg, int cpl)
2570 if (dpl < cpl) {
2582 int cpl, dpl, rpl, eflags_mask, iopl;
2631 cpl = env->hflags & HF_CPL_MASK;
2633 if (rpl < cpl)
2647 if (rpl == cpl && (!(env->hflags & HF_CS64_MASK) ||
2677 /* NULL ss is allowed in long mode if cpl != 3*/
2735 /* NOTE: 'cpl' is the _old_ CPL */
2737 if (cpl == 0)
2740 if (cpl <= iopl)
2851 int cpl;
2853 cpl = env->hflags & HF_CPL_MASK;
2854 if (env->sysenter_cs == 0 || cpl != 0) {
3303 int rpl, dpl, cpl, type;
3313 cpl = env->hflags & HF_CPL_MASK;
3318 if (dpl < cpl || dpl < rpl)
3333 if (dpl < cpl || dpl < rpl) {
3347 int rpl, dpl, cpl, type;
3357 cpl = env->hflags & HF_CPL_MASK;
3362 if (dpl < cpl || dpl < rpl)
3380 if (dpl < cpl || dpl < rpl) {
3393 int rpl, dpl, cpl;
3405 cpl = env->hflags & HF_CPL_MASK;
3410 if (dpl < cpl || dpl < rpl)
3414 if (dpl < cpl || dpl < rpl) {
3426 int rpl, dpl, cpl;
3438 cpl = env->hflags & HF_CPL_MASK;
3442 if (dpl < cpl || dpl < rpl)
5040 cpu_x86_set_cpl(env, ldub_phys(env->vm_vmcb + offsetof(struct vmcb, save.cpl)));
5353 stb_phys(env->vm_vmcb + offsetof(struct vmcb, save.cpl), env->hflags & HF_CPL_MASK);