Paolo Bonzini writes:

> On 11/05/2016 21:55, Lluís Vilanova wrote:
>> 
>> diff --git a/translate-all.c b/translate-all.c
>> index 8329ea6..1c16b14 100644
>> --- a/translate-all.c
>> +++ b/translate-all.c
>> @@ -1092,6 +1092,8 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
>> ti = profile_getclock();
>> #endif
>> 
>> +    tcg_ctx.cpu = ENV_GET_CPU(env);
>> +
>> tcg_func_start(&tcg_ctx);
>> 
>> gen_intermediate_code(env, tb);
>> 

> I prefer to also set this to NULL outside translation.

Do you mean after the call to gen_intermediate_code()?


Cheers,
  Lluis


Reply via email to