|
From: | Frederic Konrad |
Subject: | Re: [Qemu-devel] Thread local TCGContext. |
Date: | Wed, 28 Jan 2015 16:27:45 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 28/01/2015 16:17, Paolo Bonzini wrote:
On 28/01/2015 16:04, Frederic Konrad wrote:/* code generation context */ -TCGContext tcg_ctx; +__thread TCGContext tcg_ctx; But the big problem is the initialisation, it's done only onetime in the iothread with the accelerator..You need to move it to qemu_tcg_cpu_thread_fn. Paolo
Ok that makes sense.I thought it won't be possible because it seems to be initialized by a class but
probably qemu_tcg_cpu_thread_fn exists only when the accelerator is tcg. Thanks, Fred
[Prev in Thread] | Current Thread | [Next in Thread] |