• Home
  • Raw
  • Download

Lines Matching refs:dpl

94                                        uint32_t *esp_ptr, int dpl)  in get_ss_esp_from_tss()  argument
116 index = (dpl * 4 + 2) << shift; in get_ss_esp_from_tss()
132 int rpl, dpl, cpl; in tss_load_seg() local
140 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in tss_load_seg()
146 if (dpl != rpl) in tss_load_seg()
148 if ((e2 & DESC_C_MASK) && dpl > rpl) in tss_load_seg()
154 if (dpl != cpl || dpl != rpl) in tss_load_seg()
162 if (dpl < cpl || dpl < rpl) in tss_load_seg()
500 int type, dpl, selector, ss_dpl, cpl; in do_interrupt_protected() local
555 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in do_interrupt_protected()
558 if (is_int && dpl < cpl) in do_interrupt_protected()
572 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in do_interrupt_protected()
573 if (dpl > cpl) in do_interrupt_protected()
577 if (!(e2 & DESC_C_MASK) && dpl < cpl) { in do_interrupt_protected()
579 get_ss_esp_from_tss(env, &ss, &esp, dpl); in do_interrupt_protected()
582 if ((ss & 3) != dpl) in do_interrupt_protected()
587 if (ss_dpl != dpl) in do_interrupt_protected()
598 } else if ((e2 & DESC_C_MASK) || dpl == cpl) { in do_interrupt_protected()
606 dpl = cpl; in do_interrupt_protected()
667 ss = (ss & ~3) | dpl; in do_interrupt_protected()
673 selector = (selector & ~3) | dpl; in do_interrupt_protected()
678 cpu_x86_set_cpl(env, dpl); in do_interrupt_protected()
726 int type, dpl, selector, cpl, ist; in do_interrupt64() local
756 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in do_interrupt64()
759 if (is_int && dpl < cpl) in do_interrupt64()
774 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in do_interrupt64()
775 if (dpl > cpl) in do_interrupt64()
781 if ((!(e2 & DESC_C_MASK) && dpl < cpl) || ist != 0) { in do_interrupt64()
786 esp = get_rsp_from_tss(env, dpl); in do_interrupt64()
790 } else if ((e2 & DESC_C_MASK) || dpl == cpl) { in do_interrupt64()
800 dpl = cpl; in do_interrupt64()
817 ss = 0 | dpl; in do_interrupt64()
822 selector = (selector & ~3) | dpl; in do_interrupt64()
827 cpu_x86_set_cpl(env, dpl); in do_interrupt64()
1003 int dpl, cpl, shift; in do_interrupt_user() local
1015 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in do_interrupt_user()
1018 if (is_int && dpl < cpl) in do_interrupt_user()
1328 int cpl, dpl, rpl; in helper_load_seg() local
1360 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_load_seg()
1365 if (rpl != cpl || dpl != cpl) in helper_load_seg()
1374 if (dpl < cpl || dpl < rpl) in helper_load_seg()
1409 uint32_t e1, e2, cpl, dpl, rpl, limit; in helper_ljmp_protected() local
1420 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_ljmp_protected()
1423 if (dpl > cpl) in helper_ljmp_protected()
1430 if (dpl != cpl) in helper_ljmp_protected()
1444 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_ljmp_protected()
1452 if (dpl < cpl || dpl < rpl) in helper_ljmp_protected()
1460 if ((dpl < cpl) || (dpl < rpl)) in helper_ljmp_protected()
1470 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_ljmp_protected()
1475 if (((e2 & DESC_C_MASK) && (dpl > cpl)) || in helper_ljmp_protected()
1476 (!(e2 & DESC_C_MASK) && (dpl != cpl))) in helper_ljmp_protected()
1527 uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count; in helper_lcall_protected() local
1544 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_lcall_protected()
1547 if (dpl > cpl) in helper_lcall_protected()
1554 if (dpl != cpl) in helper_lcall_protected()
1600 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_lcall_protected()
1606 if (dpl < cpl || dpl < rpl) in helper_lcall_protected()
1620 if (dpl < cpl || dpl < rpl) in helper_lcall_protected()
1635 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_lcall_protected()
1636 if (dpl > cpl) in helper_lcall_protected()
1641 if (!(e2 & DESC_C_MASK) && dpl < cpl) { in helper_lcall_protected()
1643 get_ss_esp_from_tss(env, &ss, &sp, dpl); in helper_lcall_protected()
1648 if ((ss & 3) != dpl) in helper_lcall_protected()
1653 if (ss_dpl != dpl) in helper_lcall_protected()
1705 ss = (ss & ~3) | dpl; in helper_lcall_protected()
1712 selector = (selector & ~3) | dpl; in helper_lcall_protected()
1717 cpu_x86_set_cpl(env, dpl); in helper_lcall_protected()
1761 int dpl; in validate_seg() local
1772 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in validate_seg()
1775 if (dpl < cpl) { in validate_seg()
1788 int cpl, dpl, rpl, eflags_mask, iopl; in helper_ret_protected() local
1841 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_ret_protected()
1843 if (dpl > rpl) in helper_ret_protected()
1846 if (dpl != rpl) in helper_ret_protected()
1906 dpl = (ss_e2 >> DESC_DPL_SHIFT) & 3; in helper_ret_protected()
1907 if (dpl != rpl) in helper_ret_protected()
2085 int rpl, dpl, cpl, type; in helper_lsl() local
2094 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_lsl()
2100 if (dpl < cpl || dpl < rpl) in helper_lsl()
2115 if (dpl < cpl || dpl < rpl) { in helper_lsl()
2129 int rpl, dpl, cpl, type; in helper_lar() local
2138 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_lar()
2144 if (dpl < cpl || dpl < rpl) in helper_lar()
2162 if (dpl < cpl || dpl < rpl) { in helper_lar()
2175 int rpl, dpl, cpl; in helper_verr() local
2186 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_verr()
2192 if (dpl < cpl || dpl < rpl) in helper_verr()
2196 if (dpl < cpl || dpl < rpl) { in helper_verr()
2208 int rpl, dpl, cpl; in helper_verw() local
2219 dpl = (e2 >> DESC_DPL_SHIFT) & 3; in helper_verw()
2224 if (dpl < cpl || dpl < rpl) in helper_verw()