Revision 2cfc5f17 target-i386/translate.c
b/target-i386/translate.c | ||
---|---|---|
7148 | 7148 |
/* generate intermediate code in gen_opc_buf and gen_opparam_buf for |
7149 | 7149 |
basic block 'tb'. If search_pc is TRUE, also generate PC |
7150 | 7150 |
information for each intermediate instruction. */ |
7151 |
static inline int gen_intermediate_code_internal(CPUState *env,
|
|
7152 |
TranslationBlock *tb, |
|
7153 |
int search_pc) |
|
7151 |
static inline void gen_intermediate_code_internal(CPUState *env,
|
|
7152 |
TranslationBlock *tb,
|
|
7153 |
int search_pc)
|
|
7154 | 7154 |
{ |
7155 | 7155 |
DisasContext dc1, *dc = &dc1; |
7156 | 7156 |
target_ulong pc_ptr; |
... | ... | |
7321 | 7321 |
tb->size = pc_ptr - pc_start; |
7322 | 7322 |
tb->icount = num_insns; |
7323 | 7323 |
} |
7324 |
return 0; |
|
7325 | 7324 |
} |
7326 | 7325 |
|
7327 |
int gen_intermediate_code(CPUState *env, TranslationBlock *tb)
|
|
7326 |
void gen_intermediate_code(CPUState *env, TranslationBlock *tb)
|
|
7328 | 7327 |
{ |
7329 |
return gen_intermediate_code_internal(env, tb, 0);
|
|
7328 |
gen_intermediate_code_internal(env, tb, 0); |
|
7330 | 7329 |
} |
7331 | 7330 |
|
7332 |
int gen_intermediate_code_pc(CPUState *env, TranslationBlock *tb)
|
|
7331 |
void gen_intermediate_code_pc(CPUState *env, TranslationBlock *tb)
|
|
7333 | 7332 |
{ |
7334 |
return gen_intermediate_code_internal(env, tb, 1);
|
|
7333 |
gen_intermediate_code_internal(env, tb, 1); |
|
7335 | 7334 |
} |
7336 | 7335 |
|
7337 | 7336 |
void gen_pc_load(CPUState *env, TranslationBlock *tb, |
Also available in: Unified diff