28 |
#define GEN_FLAG_IOPL_SHIFT 12 /* same position as eflags */ |
#define GEN_FLAG_IOPL_SHIFT 12 /* same position as eflags */ |
29 |
|
|
30 |
struct TranslationBlock; |
struct TranslationBlock; |
31 |
int cpu_x86_gen_code(uint8_t *gen_code_buf, int max_code_size, |
int cpu_x86_gen_code(struct TranslationBlock *tb, |
32 |
int *gen_code_size_ptr, |
int max_code_size, int *gen_code_size_ptr); |
33 |
uint8_t *pc_start, uint8_t *cs_base, int flags, |
int cpu_x86_search_pc(struct TranslationBlock *tb, |
34 |
int *code_size_ptr, struct TranslationBlock *tb); |
uint32_t *found_pc, unsigned long searched_pc); |
35 |
void cpu_x86_tblocks_init(void); |
void cpu_x86_tblocks_init(void); |
36 |
void page_init(void); |
void page_init(void); |
37 |
int page_unprotect(unsigned long address); |
int page_unprotect(unsigned long address); |
161 |
} |
} |
162 |
} |
} |
163 |
|
|
164 |
|
TranslationBlock *tb_find_pc(unsigned long pc_ptr); |
165 |
|
|
166 |
#ifndef offsetof |
#ifndef offsetof |
167 |
#define offsetof(type, field) ((size_t) &((type *)0)->field) |
#define offsetof(type, field) ((size_t) &((type *)0)->field) |
168 |
#endif |
#endif |