Lines Matching refs:seg_reg
222 static void tss_load_seg(int seg_reg, int selector) in tss_load_seg() argument
235 if (seg_reg == R_CS) { in tss_load_seg()
243 } else if (seg_reg == R_SS) { in tss_load_seg()
261 cpu_x86_load_seg_cache(env, seg_reg, selector, in tss_load_seg()
266 if (seg_reg == R_SS || seg_reg == R_CS) in tss_load_seg()
2117 void helper_load_seg(int seg_reg, int selector) in helper_load_seg() argument
2129 if (seg_reg == R_SS in helper_load_seg()
2135 cpu_x86_load_seg_cache(env, seg_reg, selector, 0, 0, 0); in helper_load_seg()
2153 if (seg_reg == R_SS) { in helper_load_seg()
2172 if (seg_reg == R_SS) in helper_load_seg()
2184 cpu_x86_load_seg_cache(env, seg_reg, selector, in helper_load_seg()
2554 static inline void validate_seg(int seg_reg, int cpl) in validate_seg() argument
2562 if ((seg_reg == R_FS || seg_reg == R_GS) && in validate_seg()
2563 (env->segs[seg_reg].selector & 0xfffc) == 0) in validate_seg()
2566 e2 = env->segs[seg_reg].flags; in validate_seg()
2571 cpu_x86_load_seg_cache(env, seg_reg, 0, 0, 0, 0); in validate_seg()
4926 CPUState *env, int seg_reg) in svm_load_seg_cache() argument
4930 cpu_x86_load_seg_cache(env, seg_reg, sc->selector, in svm_load_seg_cache()