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