Lines Matching defs:seg
100 static inline uint8_t *seg_to_linear(unsigned int seg, unsigned int reg)
102 return (uint8_t *)((seg << 4) + (reg & 0xffff));
124 int fd, ret, seg;
182 seg = (COM_BASE_ADDR - 0x100) >> 4;
184 cpu_x86_load_seg_cache(env, R_CS, seg,
185 (seg << 4), 0xffff, 0);
186 cpu_x86_load_seg_cache(env, R_SS, seg,
187 (seg << 4), 0xffff, 0);
188 cpu_x86_load_seg_cache(env, R_DS, seg,
189 (seg << 4), 0xffff, 0);
190 cpu_x86_load_seg_cache(env, R_ES, seg,
191 (seg << 4), 0xffff, 0);
192 cpu_x86_load_seg_cache(env, R_FS, seg,
193 (seg << 4), 0xffff, 0);
194 cpu_x86_load_seg_cache(env, R_GS, seg,
195 (seg << 4), 0xffff, 0);