Revision 9ba5695c cpu-i386.h
b/cpu-i386.h | ||
---|---|---|
197 | 197 |
/* exception/interrupt handling */ |
198 | 198 |
jmp_buf jmp_env; |
199 | 199 |
int exception_index; |
200 |
int error_code; |
|
201 |
uint32_t cr2; |
|
200 | 202 |
int interrupt_request; |
201 | 203 |
|
202 | 204 |
/* user data */ |
... | ... | |
401 | 403 |
#endif |
402 | 404 |
|
403 | 405 |
#ifndef IN_OP_I386 |
404 |
void cpu_x86_outb(int addr, int val); |
|
405 |
void cpu_x86_outw(int addr, int val); |
|
406 |
void cpu_x86_outl(int addr, int val); |
|
407 |
int cpu_x86_inb(int addr); |
|
408 |
int cpu_x86_inw(int addr); |
|
409 |
int cpu_x86_inl(int addr); |
|
406 |
void cpu_x86_outb(CPUX86State *env, int addr, int val);
|
|
407 |
void cpu_x86_outw(CPUX86State *env, int addr, int val);
|
|
408 |
void cpu_x86_outl(CPUX86State *env, int addr, int val);
|
|
409 |
int cpu_x86_inb(CPUX86State *env, int addr);
|
|
410 |
int cpu_x86_inw(CPUX86State *env, int addr);
|
|
411 |
int cpu_x86_inl(CPUX86State *env, int addr);
|
|
410 | 412 |
#endif |
411 | 413 |
|
412 | 414 |
CPUX86State *cpu_x86_init(void); |
... | ... | |
431 | 433 |
#define GEN_FLAG_SS32_SHIFT 2 |
432 | 434 |
#define GEN_FLAG_VM_SHIFT 3 |
433 | 435 |
#define GEN_FLAG_ST_SHIFT 4 |
436 |
#define GEN_FLAG_CPL_SHIFT 7 |
|
437 |
#define GEN_FLAG_IOPL_SHIFT 9 |
|
434 | 438 |
|
435 | 439 |
int cpu_x86_gen_code(uint8_t *gen_code_buf, int max_code_size, |
436 | 440 |
int *gen_code_size_ptr, |
Also available in: Unified diff