qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 1/2] exec: [tcg] Track which vCPU is performi


From: Lluís Vilanova
Subject: Re: [Qemu-devel] [PATCH v2 1/2] exec: [tcg] Track which vCPU is performing translation and execution
Date: Thu, 12 May 2016 18:27:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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

[Prev in Thread] Current Thread [Next in Thread]