qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Make cpu_single_env thread local (Linux only fo


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] Make cpu_single_env thread local (Linux only for now)
Date: Wed, 05 Oct 2011 09:08:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 10/04/2011 07:26 PM, Jan Kiszka wrote:
Looks like a start. But I would avoid macros and go for (static inline)
functions where possible. And initialization should be explicit (so that
you can start using TLS already inside constructors).

Here is the patch I wrote to do more or less the same thing, plus Windows support. It's a bit different in that I wrote a macro that can be used as lvalue.

It doesn't let you use TLS inside constructors, however, unless you use constructor priorities.

Paolo

Attachment: tls-cpu-single-env.patch
Description: Text Data


reply via email to

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