qemu-ppc
[Top][All Lists]
Advanced

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

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


From: Paolo Bonzini
Subject: Re: [Qemu-ppc] [PATCH v2 1/2] exec: [tcg] Track which vCPU is performing translation and execution
Date: Thu, 12 May 2016 13:43:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1


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.

Paolo



reply via email to

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