Lines Matching refs:e1
178 static inline unsigned int get_seg_limit(uint32_t e1, uint32_t e2) in get_seg_limit() argument
182 limit = (e1 & 0xffff) | (e2 & 0x000f0000); in get_seg_limit()
189 static inline uint32_t get_seg_base(uint32_t e1, uint32_t e2) in get_seg_base() argument
191 return (e1 >> 16) | ((e2 & 0xff) << 16) | (e2 & 0xff000000); in get_seg_base()
194 static inline void load_seg_cache_raw_dt(SegmentCache *sc, uint32_t e1, in load_seg_cache_raw_dt() argument
197 sc->base = get_seg_base(e1, e2); in load_seg_cache_raw_dt()
198 sc->limit = get_seg_limit(e1, e2); in load_seg_cache_raw_dt()
257 uint32_t e1, e2; in tss_load_seg() local
261 if (load_segment_ra(env, &e1, &e2, selector, retaddr) != 0) { in tss_load_seg()
300 get_seg_base(e1, e2), in tss_load_seg()
301 get_seg_limit(e1, e2), in tss_load_seg()
330 uint32_t e1, uint32_t e2, int source, in switch_tss_ra() argument
353 tss_selector = e1 >> 16; in switch_tss_ra()
357 if (load_segment_ra(env, &e1, &e2, tss_selector, retaddr) != 0) { in switch_tss_ra()
378 tss_limit = get_seg_limit(e1, e2); in switch_tss_ra()
379 tss_base = get_seg_base(e1, e2); in switch_tss_ra()
564 e1 = cpu_ldl_kernel_ra(env, ptr, retaddr); in switch_tss_ra()
572 load_seg_cache_raw_dt(&env->ldt, e1, e2); in switch_tss_ra()
629 uint32_t e1, uint32_t e2, int source, in switch_tss() argument
633 switch_tss_ra(env, tss_selector, e1, e2, source, next_eip, in switch_tss()
693 uint32_t e1, e2, offset, ss = 0, ss_e1 = 0, ss_e2 = 0; in do_interrupt_protected() local
716 e1 = cpu_ldl_kernel(env, ptr); in do_interrupt_protected()
747 switch_tss(env, intno * 8, e1, e2, SWITCH_TSS_CALL, old_eip, in do_interrupt_protected()
758 selector = e1 >> 16; in do_interrupt_protected()
759 offset = (e2 & 0xffff0000) | (e1 & 0x0000ffff); in do_interrupt_protected()
763 if (load_segment(env, &e1, &e2, selector) != 0) { in do_interrupt_protected()
896 get_seg_base(e1, e2), in do_interrupt_protected()
897 get_seg_limit(e1, e2), in do_interrupt_protected()
957 uint32_t e1, e2, e3, eflags; in do_interrupt64() local
979 e1 = cpu_ldl_kernel(env, ptr); in do_interrupt64()
1002 selector = e1 >> 16; in do_interrupt64()
1003 offset = ((target_ulong)e3 << 32) | (e2 & 0xffff0000) | (e1 & 0x0000ffff); in do_interrupt64()
1009 if (load_segment(env, &e1, &e2, selector) != 0) { in do_interrupt64()
1077 get_seg_base(e1, e2), in do_interrupt64()
1078 get_seg_limit(e1, e2), in do_interrupt64()
1276 uint32_t e1, e2; in helper_lldt() local
1303 e1 = cpu_ldl_kernel_ra(env, ptr, GETPC()); in helper_lldt()
1316 load_seg_cache_raw_dt(&env->ldt, e1, e2); in helper_lldt()
1321 load_seg_cache_raw_dt(&env->ldt, e1, e2); in helper_lldt()
1330 uint32_t e1, e2; in helper_ltr() local
1358 e1 = cpu_ldl_kernel_ra(env, ptr, GETPC()); in helper_ltr()
1377 load_seg_cache_raw_dt(&env->tr, e1, e2); in helper_ltr()
1382 load_seg_cache_raw_dt(&env->tr, e1, e2); in helper_ltr()
1393 uint32_t e1, e2; in helper_load_seg() local
1423 e1 = cpu_ldl_kernel_ra(env, ptr, GETPC()); in helper_load_seg()
1468 get_seg_base(e1, e2), in helper_load_seg()
1469 get_seg_limit(e1, e2), in helper_load_seg()
1483 uint32_t e1, e2, cpl, dpl, rpl, limit; in helper_ljmp_protected() local
1488 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_ljmp_protected()
1515 limit = get_seg_limit(e1, e2); in helper_ljmp_protected()
1521 get_seg_base(e1, e2), limit, e2); in helper_ljmp_protected()
1544 switch_tss_ra(env, new_cs, e1, e2, SWITCH_TSS_JMP, next_eip, in helper_ljmp_protected()
1555 gate_cs = e1 >> 16; in helper_ljmp_protected()
1556 new_eip = (e1 & 0xffff); in helper_ljmp_protected()
1564 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_ljmp_protected()
1573 new_eip |= ((target_ulong)e1) << 32; in helper_ljmp_protected()
1577 if (load_segment_ra(env, &e1, &e2, gate_cs, GETPC()) != 0) { in helper_ljmp_protected()
1603 limit = get_seg_limit(e1, e2); in helper_ljmp_protected()
1609 get_seg_base(e1, e2), limit, e2); in helper_ljmp_protected()
1651 uint32_t e1, e2, cpl, dpl, rpl, selector, param_count; in helper_lcall_protected() local
1662 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_lcall_protected()
1666 LOG_PCALL("desc=%08x:%08x\n", e1, e2); in helper_lcall_protected()
1709 get_seg_base(e1, e2), in helper_lcall_protected()
1710 get_seg_limit(e1, e2), e2); in helper_lcall_protected()
1726 limit = get_seg_limit(e1, e2); in helper_lcall_protected()
1733 get_seg_base(e1, e2), limit, e2); in helper_lcall_protected()
1757 switch_tss_ra(env, new_cs, e1, e2, SWITCH_TSS_CALL, next_eip, in helper_lcall_protected()
1776 selector = e1 >> 16; in helper_lcall_protected()
1778 offset = (e2 & 0xffff0000) | (e1 & 0x0000ffff); in helper_lcall_protected()
1782 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_lcall_protected()
1791 offset |= ((target_ulong)e1) << 32; in helper_lcall_protected()
1798 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lcall_protected()
1945 get_seg_base(e1, e2), in helper_lcall_protected()
1946 get_seg_limit(e1, e2), in helper_lcall_protected()
2029 uint32_t e1, e2, ss_e1, ss_e2; in helper_ret_protected() local
2086 if (load_segment_ra(env, &e1, &e2, new_cs, retaddr) != 0) { in helper_ret_protected()
2116 get_seg_base(e1, e2), in helper_ret_protected()
2117 get_seg_limit(e1, e2), in helper_ret_protected()
2182 get_seg_base(e1, e2), in helper_ret_protected()
2183 get_seg_limit(e1, e2), in helper_ret_protected()
2248 uint32_t e1, e2; in helper_iret_protected() local
2261 if (load_segment_ra(env, &e1, &e2, tss_selector, GETPC()) != 0) { in helper_iret_protected()
2269 switch_tss_ra(env, tss_selector, e1, e2, SWITCH_TSS_IRET, next_eip, in helper_iret_protected()
2357 uint32_t e1, e2, selector; in helper_lsl() local
2365 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lsl()
2397 limit = get_seg_limit(e1, e2); in helper_lsl()
2404 uint32_t e1, e2, selector; in helper_lar() local
2412 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_lar()
2453 uint32_t e1, e2, eflags, selector; in helper_verr() local
2461 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_verr()
2491 uint32_t e1, e2, eflags, selector; in helper_verw() local
2499 if (load_segment_ra(env, &e1, &e2, selector, GETPC()) != 0) { in helper_verw()