Lines Matching refs:segs
390 stw_kernel(env->tr.base + (0x48 + i * 4), env->segs[i].selector); in switch_tss()
404 stw_kernel(env->tr.base + (0x22 + i * 4), env->segs[i].selector); in switch_tss()
503 if (new_eip > env->segs[R_CS].limit) { in switch_tss()
695 if (env->segs[R_SS].flags & DESC_B_MASK) in do_interrupt_protected()
700 ssp = env->segs[R_SS].base + esp; in do_interrupt_protected()
765 sp_mask = get_sp_mask(env->segs[R_SS].flags); in do_interrupt_protected()
766 ssp = env->segs[R_SS].base; in do_interrupt_protected()
789 PUSHL(ssp, esp, sp_mask, env->segs[R_GS].selector); in do_interrupt_protected()
790 PUSHL(ssp, esp, sp_mask, env->segs[R_FS].selector); in do_interrupt_protected()
791 PUSHL(ssp, esp, sp_mask, env->segs[R_DS].selector); in do_interrupt_protected()
792 PUSHL(ssp, esp, sp_mask, env->segs[R_ES].selector); in do_interrupt_protected()
794 PUSHL(ssp, esp, sp_mask, env->segs[R_SS].selector); in do_interrupt_protected()
798 PUSHL(ssp, esp, sp_mask, env->segs[R_CS].selector); in do_interrupt_protected()
806 PUSHW(ssp, esp, sp_mask, env->segs[R_GS].selector); in do_interrupt_protected()
807 PUSHW(ssp, esp, sp_mask, env->segs[R_FS].selector); in do_interrupt_protected()
808 PUSHW(ssp, esp, sp_mask, env->segs[R_DS].selector); in do_interrupt_protected()
809 PUSHW(ssp, esp, sp_mask, env->segs[R_ES].selector); in do_interrupt_protected()
811 PUSHW(ssp, esp, sp_mask, env->segs[R_SS].selector); in do_interrupt_protected()
815 PUSHW(ssp, esp, sp_mask, env->segs[R_CS].selector); in do_interrupt_protected()
968 PUSHQ(esp, env->segs[R_SS].selector); in do_interrupt64()
971 PUSHQ(esp, env->segs[R_CS].selector); in do_interrupt64()
1144 ssp = env->segs[R_SS].base; in do_interrupt_real()
1149 old_cs = env->segs[R_CS].selector; in do_interrupt_real()
1158 env->segs[R_CS].selector = selector; in do_interrupt_real()
1159 env->segs[R_CS].base = (selector << 4); in do_interrupt_real()
1229 env->segs[R_CS].selector, EIP, in do_interrupt()
1230 (int)env->segs[R_CS].base + EIP, in do_interrupt()
1231 env->segs[R_SS].selector, ESP); in do_interrupt()
1244 ptr = env->segs[R_CS].base + env->eip; in do_interrupt()
1399 dt = &env->segs[i]; in do_smm_enter()
1479 dt = &env->segs[i]; in do_smm_enter()
1956 esp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_enter_level()
1957 ssp = env->segs[R_SS].base; in helper_enter_level()
2295 esp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_lcall_real()
2296 ssp = env->segs[R_SS].base; in helper_lcall_real()
2298 PUSHL(ssp, esp, esp_mask, env->segs[R_CS].selector); in helper_lcall_real()
2301 PUSHW(ssp, esp, esp_mask, env->segs[R_CS].selector); in helper_lcall_real()
2307 env->segs[R_CS].selector = new_cs; in helper_lcall_real()
2308 env->segs[R_CS].base = (new_cs << 4); in helper_lcall_real()
2355 PUSHQ(rsp, env->segs[R_CS].selector); in helper_lcall_protected()
2367 sp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_lcall_protected()
2368 ssp = env->segs[R_SS].base; in helper_lcall_protected()
2370 PUSHL(ssp, sp, sp_mask, env->segs[R_CS].selector); in helper_lcall_protected()
2373 PUSHW(ssp, sp, sp_mask, env->segs[R_CS].selector); in helper_lcall_protected()
2453 old_sp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_lcall_protected()
2454 old_ssp = env->segs[R_SS].base; in helper_lcall_protected()
2459 PUSHL(ssp, sp, sp_mask, env->segs[R_SS].selector); in helper_lcall_protected()
2466 PUSHW(ssp, sp, sp_mask, env->segs[R_SS].selector); in helper_lcall_protected()
2477 sp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_lcall_protected()
2478 ssp = env->segs[R_SS].base; in helper_lcall_protected()
2484 PUSHL(ssp, sp, sp_mask, env->segs[R_CS].selector); in helper_lcall_protected()
2487 PUSHW(ssp, sp, sp_mask, env->segs[R_CS].selector); in helper_lcall_protected()
2527 ssp = env->segs[R_SS].base; in helper_iret_real()
2541 env->segs[R_CS].selector = new_cs; in helper_iret_real()
2542 env->segs[R_CS].base = (new_cs << 4); in helper_iret_real()
2563 (env->segs[seg_reg].selector & 0xfffc) == 0) in validate_seg()
2566 e2 = env->segs[seg_reg].flags; in validate_seg()
2590 sp_mask = get_sp_mask(env->segs[R_SS].flags); in helper_ret_protected()
2592 ssp = env->segs[R_SS].base; in helper_ret_protected()
3087 env->segs[R_FS].base = val; in helper_wrmsr()
3090 env->segs[R_GS].base = val; in helper_wrmsr()
3206 val = env->segs[R_FS].base; in helper_rdmsr()
3209 val = env->segs[R_GS].base; in helper_rdmsr()
4969 &env->segs[R_ES]); in helper_vmrun()
4971 &env->segs[R_CS]); in helper_vmrun()
4973 &env->segs[R_SS]); in helper_vmrun()
4975 &env->segs[R_DS]); in helper_vmrun()
5125 env->segs[R_FS].base); in helper_vmload()
5160 env->segs[R_FS].base); in helper_vmsave()
5163 &env->segs[R_FS]); in helper_vmsave()
5165 &env->segs[R_GS]); in helper_vmsave()
5320 &env->segs[R_ES]); in helper_vmexit()
5322 &env->segs[R_CS]); in helper_vmexit()
5324 &env->segs[R_SS]); in helper_vmexit()
5326 &env->segs[R_DS]); in helper_vmexit()