Lines Matching +full:cpu +full:- +full:1
127 uint64_t s:1;
129 uint64_t p:1;
131 uint64_t avl:1;
132 uint64_t l:1;
133 uint64_t db:1;
134 uint64_t g:1;
140 return (uint32_t)((desc->base2 << 24) | (desc->base1 << 16) | desc->base0); in x86_segment_base()
146 desc->base2 = base >> 24; in x86_set_segment_base()
147 desc->base1 = (base >> 16) & 0xff; in x86_set_segment_base()
148 desc->base0 = base & 0xffff; in x86_set_segment_base()
153 uint32_t limit = (uint32_t)((desc->limit1 << 16) | desc->limit0); in x86_segment_limit()
154 if (desc->g) { in x86_segment_limit()
163 desc->limit0 = limit & 0xffff; in x86_set_segment_limit()
164 desc->limit1 = limit >> 16; in x86_set_segment_limit()
173 uint64_t dpl:1;
174 uint64_t p:1;
180 return (uint32_t)((gate->offset1 << 16) | gate->offset0); in x86_call_gate_offset()
184 #define LDT_SEL 1
191 uint16_t ti:1;
198 #define x86_reg(cpu, reg) ((x86_register *) &cpu->regs[reg]) argument
200 #define RRX(cpu, reg) (x86_reg(cpu, reg)->rrx) argument
201 #define RAX(cpu) RRX(cpu, R_EAX) argument
202 #define RCX(cpu) RRX(cpu, R_ECX) argument
203 #define RDX(cpu) RRX(cpu, R_EDX) argument
204 #define RBX(cpu) RRX(cpu, R_EBX) argument
205 #define RSP(cpu) RRX(cpu, R_ESP) argument
206 #define RBP(cpu) RRX(cpu, R_EBP) argument
207 #define RSI(cpu) RRX(cpu, R_ESI) argument
208 #define RDI(cpu) RRX(cpu, R_EDI) argument
209 #define R8(cpu) RRX(cpu, R_R8) argument
210 #define R9(cpu) RRX(cpu, R_R9) argument
211 #define R10(cpu) RRX(cpu, R_R10) argument
212 #define R11(cpu) RRX(cpu, R_R11) argument
213 #define R12(cpu) RRX(cpu, R_R12) argument
214 #define R13(cpu) RRX(cpu, R_R13) argument
215 #define R14(cpu) RRX(cpu, R_R14) argument
216 #define R15(cpu) RRX(cpu, R_R15) argument
218 #define ERX(cpu, reg) (x86_reg(cpu, reg)->erx) argument
219 #define EAX(cpu) ERX(cpu, R_EAX) argument
220 #define ECX(cpu) ERX(cpu, R_ECX) argument
221 #define EDX(cpu) ERX(cpu, R_EDX) argument
222 #define EBX(cpu) ERX(cpu, R_EBX) argument
223 #define ESP(cpu) ERX(cpu, R_ESP) argument
224 #define EBP(cpu) ERX(cpu, R_EBP) argument
225 #define ESI(cpu) ERX(cpu, R_ESI) argument
226 #define EDI(cpu) ERX(cpu, R_EDI) argument
228 #define RX(cpu, reg) (x86_reg(cpu, reg)->rx) argument
229 #define AX(cpu) RX(cpu, R_EAX) argument
230 #define CX(cpu) RX(cpu, R_ECX) argument
231 #define DX(cpu) RX(cpu, R_EDX) argument
232 #define BP(cpu) RX(cpu, R_EBP) argument
233 #define SP(cpu) RX(cpu, R_ESP) argument
234 #define BX(cpu) RX(cpu, R_EBX) argument
235 #define SI(cpu) RX(cpu, R_ESI) argument
236 #define DI(cpu) RX(cpu, R_EDI) argument
238 #define RL(cpu, reg) (x86_reg(cpu, reg)->lx) argument
239 #define AL(cpu) RL(cpu, R_EAX) argument
240 #define CL(cpu) RL(cpu, R_ECX) argument
241 #define DL(cpu) RL(cpu, R_EDX) argument
242 #define BL(cpu) RL(cpu, R_EBX) argument
244 #define RH(cpu, reg) (x86_reg(cpu, reg)->hx) argument
245 #define AH(cpu) RH(cpu, R_EAX) argument
246 #define CH(cpu) RH(cpu, R_ECX) argument
247 #define DH(cpu) RH(cpu, R_EDX) argument
248 #define BH(cpu) RH(cpu, R_EBX) argument
251 bool x86_read_segment_descriptor(CPUState *cpu,
254 bool x86_write_segment_descriptor(CPUState *cpu,
258 bool x86_read_call_gate(CPUState *cpu, struct x86_call_gate *idt_desc,
262 bool x86_is_protected(CPUState *cpu);
263 bool x86_is_real(CPUState *cpu);
264 bool x86_is_v8086(CPUState *cpu);
265 bool x86_is_long_mode(CPUState *cpu);
266 bool x86_is_long64_mode(CPUState *cpu);
267 bool x86_is_paging_mode(CPUState *cpu);
268 bool x86_is_pae_enabled(CPUState *cpu);
271 target_ulong linear_addr(CPUState *cpu, target_ulong addr, enum X86Seg seg);
272 target_ulong linear_addr_size(CPUState *cpu, target_ulong addr, int size,
274 target_ulong linear_rip(CPUState *cpu, target_ulong rip);