Lines Matching full:if
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
36 if ((sp_mask) == 0xffff) { \
39 } else if ((sp_mask) == 0xffffffffLL) { \
99 if (!(env->cr[0] & CR0_PG_MASK)) { in get_pg_mode()
102 if (env->cr[0] & CR0_WP_MASK) { in get_pg_mode()
105 if (env->cr[4] & CR4_PAE_MASK) { in get_pg_mode()
107 if (env->efer & MSR_EFER_NXE) { in get_pg_mode()
111 if (env->cr[4] & CR4_PSE_MASK) { in get_pg_mode()
114 if (env->cr[4] & CR4_SMEP_MASK) { in get_pg_mode()
117 if (env->hflags & HF_LMA_MASK) { in get_pg_mode()
119 if (env->cr[4] & CR4_PKE_MASK) { in get_pg_mode()
122 if (env->cr[4] & CR4_PKS_MASK) { in get_pg_mode()
125 if (env->cr[4] & CR4_LA57_MASK) { in get_pg_mode()
148 /* return non zero if error */
157 if (selector & 0x4) { in load_segment_ra()
163 if ((index + 7) > dt->limit) { in load_segment_ra()
183 if (e2 & DESC_G_MASK) { in get_seg_limit()
219 #if 0 in get_ss_esp_from_tss()
225 if ((i & 7) == 7) { in get_ss_esp_from_tss()
233 if (!(env->tr.flags & DESC_P_MASK)) { in get_ss_esp_from_tss()
237 if ((type & 7) != 1) { in get_ss_esp_from_tss()
242 if (index + (4 << shift) - 1 > env->tr.limit) { in get_ss_esp_from_tss()
245 if (shift == 0) { in get_ss_esp_from_tss()
260 if ((selector & 0xfffc) != 0) { in tss_load_seg()
261 if (load_segment_ra(env, &e1, &e2, selector, retaddr) != 0) { in tss_load_seg()
264 if (!(e2 & DESC_S_MASK)) { in tss_load_seg()
269 if (seg_reg == R_CS) { in tss_load_seg()
270 if (!(e2 & DESC_CS_MASK)) { in tss_load_seg()
273 if (dpl != rpl) { in tss_load_seg()
276 } else if (seg_reg == R_SS) { in tss_load_seg()
278 if ((e2 & DESC_CS_MASK) || !(e2 & DESC_W_MASK)) { in tss_load_seg()
281 if (dpl != cpl || dpl != rpl) { in tss_load_seg()
286 if ((e2 & DESC_CS_MASK) && !(e2 & DESC_R_MASK)) { in tss_load_seg()
289 /* if data or non conforming code, checks the rights */ in tss_load_seg()
290 if (((e2 >> DESC_TYPE_SHIFT) & 0xf) < 12) { in tss_load_seg()
291 if (dpl < cpl || dpl < rpl) { in tss_load_seg()
296 if (!(e2 & DESC_P_MASK)) { in tss_load_seg()
304 if (seg_reg == R_SS || seg_reg == R_CS) { in tss_load_seg()
316 if (value) { in tss_set_busy()
348 /* if task gate, we read the TSS segment and we load it */ in switch_tss_ra()
349 if (type == 5) { in switch_tss_ra()
350 if (!(e2 & DESC_P_MASK)) { in switch_tss_ra()
354 if (tss_selector & 4) { in switch_tss_ra()
357 if (load_segment_ra(env, &e1, &e2, tss_selector, retaddr) != 0) { in switch_tss_ra()
360 if (e2 & DESC_S_MASK) { in switch_tss_ra()
364 if ((type & 7) != 1) { in switch_tss_ra()
369 if (!(e2 & DESC_P_MASK)) { in switch_tss_ra()
373 if (type & 8) { in switch_tss_ra()
380 if ((tss_selector & 4) != 0 || in switch_tss_ra()
385 if (old_type & 8) { in switch_tss_ra()
392 if (!!(e2 & DESC_TSS_BUSY_MASK) != (source == SWITCH_TSS_IRET)) { in switch_tss_ra()
401 if (source == SWITCH_TSS_CALL) { in switch_tss_ra()
412 if (old_type & 8) { in switch_tss_ra()
447 if (type & 8) { in switch_tss_ra()
478 if (source == SWITCH_TSS_JMP || source == SWITCH_TSS_IRET) { in switch_tss_ra()
482 if (source == SWITCH_TSS_IRET) { in switch_tss_ra()
484 if (old_type & 8) { in switch_tss_ra()
491 if (source == SWITCH_TSS_CALL) { in switch_tss_ra()
501 if (source == SWITCH_TSS_JMP || source == SWITCH_TSS_CALL) { in switch_tss_ra()
507 /* now if an exception occurs, it will occur in the next task context */ in switch_tss_ra()
516 if ((type & 8) && (env->cr[0] & CR0_PG_MASK)) { in switch_tss_ra()
525 if (type & 8) { in switch_tss_ra()
536 if (new_eflags & VM_MASK) { in switch_tss_ra()
553 if (new_ldt & 4) { in switch_tss_ra()
557 if ((new_ldt & 0xfffc) != 0) { in switch_tss_ra()
560 if ((index + 7) > dt->limit) { in switch_tss_ra()
566 if ((e2 & DESC_S_MASK) || ((e2 >> DESC_TYPE_SHIFT) & 0xf) != 2) { in switch_tss_ra()
569 if (!(e2 & DESC_P_MASK)) { in switch_tss_ra()
576 if (!(new_eflags & VM_MASK)) { in switch_tss_ra()
587 if (new_eip > env->segs[R_CS].limit) { in switch_tss_ra()
588 /* XXX: different exception if CALL? */ in switch_tss_ra()
594 if (env->dr[7] & DR7_LOCAL_BP_MASK) { in switch_tss_ra()
599 if (has_error_code) { in switch_tss_ra()
608 if (env->segs[R_SS].flags & DESC_B_MASK) { in switch_tss_ra()
614 if (type & 8) { in switch_tss_ra()
622 if (new_trap) { in switch_tss_ra()
640 if (e2 & DESC_L_MASK) { in get_sp_mask()
644 if (e2 & DESC_B_MASK) { in get_sp_mask()
700 if (!is_int && !is_hw) { in do_interrupt_protected()
703 if (is_int) { in do_interrupt_protected()
712 if (intno * 8 + 7 > dt->limit) { in do_interrupt_protected()
733 /* check privilege if software int */ in do_interrupt_protected()
734 if (is_int && dpl < cpl) { in do_interrupt_protected()
741 if (type == 5) { in do_interrupt_protected()
744 if (!(e2 & DESC_P_MASK)) { in do_interrupt_protected()
755 if (!(e2 & DESC_P_MASK)) { in do_interrupt_protected()
760 if ((selector & 0xfffc) == 0) { in do_interrupt_protected()
763 if (load_segment(env, &e1, &e2, selector) != 0) { in do_interrupt_protected()
766 if (!(e2 & DESC_S_MASK) || !(e2 & (DESC_CS_MASK))) { in do_interrupt_protected()
770 if (dpl > cpl) { in do_interrupt_protected()
773 if (!(e2 & DESC_P_MASK)) { in do_interrupt_protected()
776 if (e2 & DESC_C_MASK) { in do_interrupt_protected()
780 if (dpl < cpl) { in do_interrupt_protected()
784 if ((ss & 0xfffc) == 0) { in do_interrupt_protected()
787 if ((ss & 3) != dpl) { in do_interrupt_protected()
790 if (load_segment(env, &ss_e1, &ss_e2, ss) != 0) { in do_interrupt_protected()
794 if (ss_dpl != dpl) { in do_interrupt_protected()
797 if (!(ss_e2 & DESC_S_MASK) || in do_interrupt_protected()
802 if (!(ss_e2 & DESC_P_MASK)) { in do_interrupt_protected()
811 if (vm86) { in do_interrupt_protected()
822 #if 0 in do_interrupt_protected()
825 if (vm86) { in do_interrupt_protected()
835 if (set_rf) { in do_interrupt_protected()
839 if (shift == 1) { in do_interrupt_protected()
840 if (new_stack) { in do_interrupt_protected()
841 if (vm86) { in do_interrupt_protected()
853 if (has_error_code) { in do_interrupt_protected()
857 if (new_stack) { in do_interrupt_protected()
858 if (vm86) { in do_interrupt_protected()
870 if (has_error_code) { in do_interrupt_protected()
875 /* interrupt gate clear IF mask */ in do_interrupt_protected()
876 if ((type & 1) == 0) { in do_interrupt_protected()
881 if (new_stack) { in do_interrupt_protected()
882 if (vm86) { in do_interrupt_protected()
924 #if 0 in get_rsp_from_tss()
929 if (!(env->tr.flags & DESC_P_MASK)) { in get_rsp_from_tss()
933 if ((index + 7) > env->tr.limit) { in get_rsp_from_tss()
942 if (sext != 0 && sext != -1) { in get_rsp_from_tss()
963 if (!is_int && !is_hw) { in do_interrupt64()
966 if (is_int) { in do_interrupt64()
975 if (intno * 16 + 15 > dt->limit) { in do_interrupt64()
994 /* check privilege if software int */ in do_interrupt64()
995 if (is_int && dpl < cpl) { in do_interrupt64()
999 if (!(e2 & DESC_P_MASK)) { in do_interrupt64()
1005 if ((selector & 0xfffc) == 0) { in do_interrupt64()
1009 if (load_segment(env, &e1, &e2, selector) != 0) { in do_interrupt64()
1012 if (!(e2 & DESC_S_MASK) || !(e2 & (DESC_CS_MASK))) { in do_interrupt64()
1016 if (dpl > cpl) { in do_interrupt64()
1019 if (!(e2 & DESC_P_MASK)) { in do_interrupt64()
1022 if (!(e2 & DESC_L_MASK) || (e2 & DESC_B_MASK)) { in do_interrupt64()
1025 if (e2 & DESC_C_MASK) { in do_interrupt64()
1034 if (dpl < cpl || ist != 0) { in do_interrupt64()
1040 if (env->eflags & VM_MASK) { in do_interrupt64()
1050 if (set_rf) { in do_interrupt64()
1059 if (has_error_code) { in do_interrupt64()
1063 /* interrupt gate clear IF mask */ in do_interrupt64()
1064 if ((type & 1) == 0) { in do_interrupt64()
1069 if (new_stack) { in do_interrupt64()
1088 if (!(env->efer & MSR_EFER_SCE)) { in helper_sysret()
1092 if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) { in helper_sysret()
1097 if (env->hflags & HF_LMA_MASK) { in helper_sysret()
1101 if (dflag == 2) { in helper_sysret()
1153 if (intno * 4 + 3 > dt->limit) { in do_interrupt_real()
1167 if (is_int) { in do_interrupt_real()
1187 * Begin execution of an interruption. is_int is TRUE if coming from
1189 * instruction. It is only relevant if is_int is TRUE.
1196 if (qemu_loglevel_mask(CPU_LOG_INT)) { in do_interrupt_all()
1197 if ((env->cr[0] & CR0_PE_MASK)) { in do_interrupt_all()
1207 if (intno == 0x0e) { in do_interrupt_all()
1214 #if 0 in do_interrupt_all()
1230 if (env->cr[0] & CR0_PE_MASK) { in do_interrupt_all()
1231 #if !defined(CONFIG_USER_ONLY) in do_interrupt_all()
1232 if (env->hflags & HF_GUEST_MASK) { in do_interrupt_all()
1237 if (env->hflags & HF_LMA_MASK) { in do_interrupt_all()
1246 #if !defined(CONFIG_USER_ONLY) in do_interrupt_all()
1247 if (env->hflags & HF_GUEST_MASK) { in do_interrupt_all()
1254 #if !defined(CONFIG_USER_ONLY) in do_interrupt_all()
1255 if (env->hflags & HF_GUEST_MASK) { in do_interrupt_all()
1281 if ((selector & 0xfffc) == 0) { in helper_lldt()
1286 if (selector & 0x4) { in helper_lldt()
1292 if (env->hflags & HF_LMA_MASK) { in helper_lldt()
1299 if ((index + entry_limit) > dt->limit) { in helper_lldt()
1305 if ((e2 & DESC_S_MASK) || ((e2 >> DESC_TYPE_SHIFT) & 0xf) != 2) { in helper_lldt()
1308 if (!(e2 & DESC_P_MASK)) { in helper_lldt()
1312 if (env->hflags & HF_LMA_MASK) { in helper_lldt()
1335 if ((selector & 0xfffc) == 0) { in helper_ltr()
1341 if (selector & 0x4) { in helper_ltr()
1347 if (env->hflags & HF_LMA_MASK) { in helper_ltr()
1354 if ((index + entry_limit) > dt->limit) { in helper_ltr()
1361 if ((e2 & DESC_S_MASK) || in helper_ltr()
1365 if (!(e2 & DESC_P_MASK)) { in helper_ltr()
1369 if (env->hflags & HF_LMA_MASK) { in helper_ltr()
1374 if ((e4 >> DESC_TYPE_SHIFT) & 0xf) { in helper_ltr()
1390 /* only works if protected mode and not VM86. seg_reg must be != R_CS */
1401 if ((selector & 0xfffc) == 0) { in helper_load_seg()
1403 if (seg_reg == R_SS in helper_load_seg()
1413 if (selector & 0x4) { in helper_load_seg()
1419 if ((index + 7) > dt->limit) { in helper_load_seg()
1426 if (!(e2 & DESC_S_MASK)) { in helper_load_seg()
1431 if (seg_reg == R_SS) { in helper_load_seg()
1433 if ((e2 & DESC_CS_MASK) || !(e2 & DESC_W_MASK)) { in helper_load_seg()
1436 if (rpl != cpl || dpl != cpl) { in helper_load_seg()
1441 if ((e2 & (DESC_CS_MASK | DESC_R_MASK)) == DESC_CS_MASK) { in helper_load_seg()
1445 if (!(e2 & DESC_CS_MASK) || !(e2 & DESC_C_MASK)) { in helper_load_seg()
1446 /* if not conforming code, test rights */ in helper_load_seg()
1447 if (dpl < cpl || dpl < rpl) { in helper_load_seg()
1453 if (!(e2 & DESC_P_MASK)) { in helper_load_seg()
1454 if (seg_reg == R_SS) { in helper_load_seg()
1461 /* set the access bit if not already set */ in helper_load_seg()
1462 if (!(e2 & DESC_A_MASK)) { in helper_load_seg()
1471 #if 0 in helper_load_seg()
1485 if ((new_cs & 0xfffc) == 0) { in helper_ljmp_protected()
1488 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_ljmp_protected()
1492 if (e2 & DESC_S_MASK) { in helper_ljmp_protected()
1493 if (!(e2 & DESC_CS_MASK)) { in helper_ljmp_protected()
1497 if (e2 & DESC_C_MASK) { in helper_ljmp_protected()
1499 if (dpl > cpl) { in helper_ljmp_protected()
1505 if (rpl > cpl) { in helper_ljmp_protected()
1508 if (dpl != cpl) { in helper_ljmp_protected()
1512 if (!(e2 & DESC_P_MASK)) { in helper_ljmp_protected()
1516 if (new_eip > limit && in helper_ljmp_protected()
1531 if (env->efer & MSR_EFER_LMA) { in helper_ljmp_protected()
1532 if (type != 12) { in helper_ljmp_protected()
1541 if (dpl < cpl || dpl < rpl) { in helper_ljmp_protected()
1549 if ((dpl < cpl) || (dpl < rpl)) { in helper_ljmp_protected()
1552 if (!(e2 & DESC_P_MASK)) { in helper_ljmp_protected()
1557 if (type == 12) { in helper_ljmp_protected()
1562 if (env->efer & MSR_EFER_LMA) { in helper_ljmp_protected()
1564 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_ljmp_protected()
1569 if (type != 0) { in helper_ljmp_protected()
1577 if (load_segment_ra(env, &e1, &e2, gate_cs, GETPC()) != 0) { in helper_ljmp_protected()
1582 if (((e2 & (DESC_S_MASK | DESC_CS_MASK)) != in helper_ljmp_protected()
1586 if (((e2 & DESC_C_MASK) && (dpl > cpl)) || in helper_ljmp_protected()
1591 if (env->efer & MSR_EFER_LMA) { in helper_ljmp_protected()
1592 if (!(e2 & DESC_L_MASK)) { in helper_ljmp_protected()
1595 if (e2 & DESC_B_MASK) { in helper_ljmp_protected()
1600 if (!(e2 & DESC_P_MASK)) { in helper_ljmp_protected()
1604 if (new_eip > limit && in helper_ljmp_protected()
1632 if (shift) { in helper_lcall_real()
1659 if ((new_cs & 0xfffc) == 0) { in helper_lcall_protected()
1662 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_lcall_protected()
1671 if (e2 & DESC_S_MASK) { in helper_lcall_protected()
1673 if (!(e2 & DESC_CS_MASK)) { in helper_lcall_protected()
1677 if (e2 & DESC_C_MASK) { in helper_lcall_protected()
1679 if (dpl > cpl) { in helper_lcall_protected()
1685 if (rpl > cpl) { in helper_lcall_protected()
1688 if (dpl != cpl) { in helper_lcall_protected()
1692 if (!(e2 & DESC_P_MASK)) { in helper_lcall_protected()
1699 if (shift == 2) { in helper_lcall_protected()
1718 if (shift) { in helper_lcall_protected()
1727 if (new_eip > limit) { in helper_lcall_protected()
1743 if (env->efer & MSR_EFER_LMA) { in helper_lcall_protected()
1744 if (type != 12) { in helper_lcall_protected()
1754 if (dpl < cpl || dpl < rpl) { in helper_lcall_protected()
1769 if (dpl < cpl || dpl < rpl) { in helper_lcall_protected()
1773 if (!(e2 & DESC_P_MASK)) { in helper_lcall_protected()
1780 if (env->efer & MSR_EFER_LMA) { in helper_lcall_protected()
1782 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_lcall_protected()
1787 if (type != 0) { in helper_lcall_protected()
1794 if ((selector & 0xfffc) == 0) { in helper_lcall_protected()
1798 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lcall_protected()
1801 if (!(e2 & DESC_S_MASK) || !(e2 & (DESC_CS_MASK))) { in helper_lcall_protected()
1805 if (dpl > cpl) { in helper_lcall_protected()
1809 if (env->efer & MSR_EFER_LMA) { in helper_lcall_protected()
1810 if (!(e2 & DESC_L_MASK)) { in helper_lcall_protected()
1813 if (e2 & DESC_B_MASK) { in helper_lcall_protected()
1819 if (!(e2 & DESC_P_MASK)) { in helper_lcall_protected()
1823 if (!(e2 & DESC_C_MASK) && dpl < cpl) { in helper_lcall_protected()
1827 if (shift == 2) { in helper_lcall_protected()
1843 if ((ss & 0xfffc) == 0) { in helper_lcall_protected()
1846 if ((ss & 3) != dpl) { in helper_lcall_protected()
1849 if (load_segment_ra(env, &ss_e1, &ss_e2, ss, GETPC()) != 0) { in helper_lcall_protected()
1853 if (ss_dpl != dpl) { in helper_lcall_protected()
1856 if (!(ss_e2 & DESC_S_MASK) || in helper_lcall_protected()
1861 if (!(ss_e2 & DESC_P_MASK)) { in helper_lcall_protected()
1875 if (shift == 2) { in helper_lcall_protected()
1876 /* XXX: verify if new stack address is canonical */ in helper_lcall_protected()
1882 if (shift == 1) { in helper_lcall_protected()
1913 if (shift == 2) { in helper_lcall_protected()
1918 if (shift == 1) { in helper_lcall_protected()
1928 if (new_stack) { in helper_lcall_protected()
1930 if (shift == 2) { in helper_lcall_protected()
1967 if (shift == 1) { in helper_iret_real()
1982 if (env->eflags & VM_MASK) { in helper_iret_real()
1989 if (shift == 0) { in helper_iret_real()
2004 if ((seg_reg == R_FS || seg_reg == R_GS) && in validate_seg()
2011 if (!(e2 & DESC_CS_MASK) || !(e2 & DESC_C_MASK)) { in validate_seg()
2013 if (dpl < cpl) { in validate_seg()
2041 if (shift == 2) { in helper_ret_protected()
2052 if (shift == 2) { in helper_ret_protected()
2055 if (is_iret) { in helper_ret_protected()
2061 if (shift == 1) { in helper_ret_protected()
2065 if (is_iret) { in helper_ret_protected()
2067 if (new_eflags & VM_MASK) { in helper_ret_protected()
2075 if (is_iret) { in helper_ret_protected()
2083 if ((new_cs & 0xfffc) == 0) { in helper_ret_protected()
2086 if (load_segment_ra(env, &e1, &e2, new_cs, retaddr) != 0) { in helper_ret_protected()
2089 if (!(e2 & DESC_S_MASK) || in helper_ret_protected()
2094 if (rpl < cpl) { in helper_ret_protected()
2098 if (e2 & DESC_C_MASK) { in helper_ret_protected()
2099 if (dpl > rpl) { in helper_ret_protected()
2103 if (dpl != rpl) { in helper_ret_protected()
2107 if (!(e2 & DESC_P_MASK)) { in helper_ret_protected()
2112 if (rpl == cpl && (!(env->hflags & HF_CS64_MASK) || in helper_ret_protected()
2122 if (shift == 2) { in helper_ret_protected()
2128 if (shift == 1) { in helper_ret_protected()
2140 if ((new_ss & 0xfffc) == 0) { in helper_ret_protected()
2142 /* NULL ss is allowed in long mode if cpl != 3 */ in helper_ret_protected()
2144 if ((env->hflags & HF_LMA_MASK) && rpl != 3) { in helper_ret_protected()
2157 if ((new_ss & 3) != rpl) { in helper_ret_protected()
2160 if (load_segment_ra(env, &ss_e1, &ss_e2, new_ss, retaddr) != 0) { in helper_ret_protected()
2163 if (!(ss_e2 & DESC_S_MASK) || in helper_ret_protected()
2169 if (dpl != rpl) { in helper_ret_protected()
2172 if (!(ss_e2 & DESC_P_MASK)) { in helper_ret_protected()
2187 if (env->hflags & HF_CS64_MASK) { in helper_ret_protected()
2205 if (is_iret) { in helper_ret_protected()
2208 if (cpl == 0) { in helper_ret_protected()
2212 if (cpl <= iopl) { in helper_ret_protected()
2215 if (shift == 0) { in helper_ret_protected()
2251 if (env->eflags & NT_MASK) { in helper_iret_protected()
2253 if (env->hflags & HF_LMA_MASK) { in helper_iret_protected()
2258 if (tss_selector & 4) { in helper_iret_protected()
2261 if (load_segment_ra(env, &e1, &e2, tss_selector, GETPC()) != 0) { in helper_iret_protected()
2266 if (type != 3) { in helper_iret_protected()
2284 if (env->sysenter_cs == 0) { in helper_sysenter()
2290 if (env->hflags & HF_LMA_MASK) { in helper_sysenter()
2320 if (env->sysenter_cs == 0 || cpl != 0) { in helper_sysexit()
2324 if (dflag == 2) { in helper_sysexit()
2362 if ((selector & 0xfffc) == 0) { in helper_lsl()
2365 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lsl()
2371 if (e2 & DESC_S_MASK) { in helper_lsl()
2372 if ((e2 & DESC_CS_MASK) && (e2 & DESC_C_MASK)) { in helper_lsl()
2375 if (dpl < cpl || dpl < rpl) { in helper_lsl()
2391 if (dpl < cpl || dpl < rpl) { in helper_lsl()
2409 if ((selector & 0xfffc) == 0) { in helper_lar()
2412 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lar()
2418 if (e2 & DESC_S_MASK) { in helper_lar()
2419 if ((e2 & DESC_CS_MASK) && (e2 & DESC_C_MASK)) { in helper_lar()
2422 if (dpl < cpl || dpl < rpl) { in helper_lar()
2441 if (dpl < cpl || dpl < rpl) { in helper_lar()
2458 if ((selector & 0xfffc) == 0) { in helper_verr()
2461 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_verr()
2464 if (!(e2 & DESC_S_MASK)) { in helper_verr()
2470 if (e2 & DESC_CS_MASK) { in helper_verr()
2471 if (!(e2 & DESC_R_MASK)) { in helper_verr()
2474 if (!(e2 & DESC_C_MASK)) { in helper_verr()
2475 if (dpl < cpl || dpl < rpl) { in helper_verr()
2480 if (dpl < cpl || dpl < rpl) { in helper_verr()
2496 if ((selector & 0xfffc) == 0) { in helper_verw()
2499 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_verw()
2502 if (!(e2 & DESC_S_MASK)) { in helper_verw()
2508 if (e2 & DESC_CS_MASK) { in helper_verw()
2511 if (dpl < cpl || dpl < rpl) { in helper_verw()
2514 if (!(e2 & DESC_W_MASK)) { in helper_verw()