'*gen_code_size_ptr' contains the size of the generated code (host
code).
*/
-int cpu_gen_code(TranslationBlock *tb,
+int cpu_gen_code(CPUState *env, TranslationBlock *tb,
int max_code_size, int *gen_code_size_ptr)
{
uint8_t *gen_code_buf;
int gen_code_size;
- if (gen_intermediate_code(tb) < 0)
+ if (gen_intermediate_code(env, tb) < 0)
return -1;
/* generate machine code */
unsigned long tc_ptr;
uint16_t *opc_ptr;
- if (gen_intermediate_code_pc(tb) < 0)
+ if (gen_intermediate_code_pc(env, tb) < 0)
return -1;
/* find opc index corresponding to search_pc */