Lines Matching refs:new_cs

1452 void helper_ljmp_protected(CPUX86State *env, int new_cs, target_ulong new_eip,  in helper_ljmp_protected()  argument
1458 if ((new_cs & 0xfffc) == 0) { in helper_ljmp_protected()
1461 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_ljmp_protected()
1462 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1467 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1473 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1477 rpl = new_cs & 3; in helper_ljmp_protected()
1479 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1482 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1486 raise_exception_err_ra(env, EXCP0B_NOSEG, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1493 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl, in helper_ljmp_protected()
1499 rpl = new_cs & 3; in helper_ljmp_protected()
1506 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1515 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1517 switch_tss_ra(env, new_cs, e1, e2, SWITCH_TSS_JMP, next_eip, GETPC()); in helper_ljmp_protected()
1522 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1525 raise_exception_err_ra(env, EXCP0B_NOSEG, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1536 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_ljmp_protected()
1537 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, in helper_ljmp_protected()
1542 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, in helper_ljmp_protected()
1585 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_ljmp_protected()
1592 void helper_lcall_real(CPUX86State *env, uint32_t new_cs, uint32_t new_eip, in helper_lcall_real() argument
1614 env->segs[R_CS].selector = new_cs; in helper_lcall_real()
1615 env->segs[R_CS].base = (new_cs << 4); in helper_lcall_real()
1619 void helper_lcall_protected(CPUX86State *env, int new_cs, target_ulong new_eip, in helper_lcall_protected() argument
1629 LOG_PCALL("lcall %04x:" TARGET_FMT_lx " s=%d\n", new_cs, new_eip, shift); in helper_lcall_protected()
1631 if ((new_cs & 0xfffc) == 0) { in helper_lcall_protected()
1634 if (load_segment_ra(env, &e1, &e2, new_cs, GETPC()) != 0) { in helper_lcall_protected()
1635 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1646 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1652 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1656 rpl = new_cs & 3; in helper_lcall_protected()
1658 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1661 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1665 raise_exception_err_ra(env, EXCP0B_NOSEG, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1679 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl, in helper_lcall_protected()
1699 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1703 cpu_x86_load_seg_cache(env, R_CS, (new_cs & 0xfffc) | cpl, in helper_lcall_protected()
1711 rpl = new_cs & 3; in helper_lcall_protected()
1716 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1726 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1728 switch_tss_ra(env, new_cs, e1, e2, SWITCH_TSS_CALL, next_eip, GETPC()); in helper_lcall_protected()
1734 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1740 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1744 raise_exception_err_ra(env, EXCP0B_NOSEG, new_cs & 0xfffc, GETPC()); in helper_lcall_protected()
1752 if (load_segment_ra(env, &e1, &e2, new_cs + 8, GETPC())) { in helper_lcall_protected()
1753 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, in helper_lcall_protected()
1758 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, in helper_lcall_protected()
1924 uint32_t new_cs, new_eip, new_eflags; in helper_iret_real() local
1938 new_cs = popl(&sa) & 0xffff; in helper_iret_real()
1943 new_cs = popw(&sa); in helper_iret_real()
1947 env->segs[R_CS].selector = new_cs; in helper_iret_real()
1948 env->segs[R_CS].base = (new_cs << 4); in helper_iret_real()
1995 uint32_t new_cs, new_eflags, new_ss; in helper_ret_protected() local
2022 new_cs = popq(&sa) & 0xffff; in helper_ret_protected()
2032 new_cs = popl(&sa) & 0xffff; in helper_ret_protected()
2042 new_cs = popw(&sa); in helper_ret_protected()
2049 new_cs, new_eip, shift, addend); in helper_ret_protected()
2051 if ((new_cs & 0xfffc) == 0) { in helper_ret_protected()
2052 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2054 if (load_segment_ra(env, &e1, &e2, new_cs, retaddr) != 0) { in helper_ret_protected()
2055 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2059 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2061 rpl = new_cs & 3; in helper_ret_protected()
2063 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2068 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2072 raise_exception_err_ra(env, EXCP0D_GPF, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2076 raise_exception_err_ra(env, EXCP0B_NOSEG, new_cs & 0xfffc, retaddr); in helper_ret_protected()
2083 cpu_x86_load_seg_cache(env, R_CS, new_cs, in helper_ret_protected()
2149 cpu_x86_load_seg_cache(env, R_CS, new_cs, in helper_ret_protected()
2202 load_seg_vm(env, R_CS, new_cs & 0xffff); in helper_ret_protected()