From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtvPd-0002kT-9m for qemu-devel@nongnu.org; Tue, 02 Jul 2013 03:54:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtvPc-0004VS-AX for qemu-devel@nongnu.org; Tue, 02 Jul 2013 03:54:09 -0400 Received: from mail-bk0-x22b.google.com ([2a00:1450:4008:c01::22b]:65332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtvPc-0004VL-4E for qemu-devel@nongnu.org; Tue, 02 Jul 2013 03:54:08 -0400 Received: by mail-bk0-f43.google.com with SMTP id jm2so2116338bkc.30 for ; Tue, 02 Jul 2013 00:54:07 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <51D2871A.2020109@redhat.com> Date: Tue, 02 Jul 2013 09:54:02 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1372671341-19855-1-git-send-email-stefanha@redhat.com> <1372671341-19855-3-git-send-email-stefanha@redhat.com> <51D1E6D1.9070505@twiddle.net> In-Reply-To: <51D1E6D1.9070505@twiddle.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] qemu-thread: add TLS wrappers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: Peter Maydell , Ed Maste , qemu-devel , Stefan Hajnoczi Il 01/07/2013 22:30, Richard Henderson ha scritto: > On 07/01/2013 12:25 PM, Peter Maydell wrote: >> Does any OS have a __thread which compiles but is broken, or can >> we just have a configure test for this? That would let MacOSX+clang >> use __thread. > > I suspect that this will work. Some targets may succeed in using gcc's > "emutls" path, which while slower than TLS is pretty much exactly the pthread > get/setcontext fallback that's been proposed elsewhere on this list. We do not want to hit emutls on Windows, but that can be done simply by reordering the three implementation. Paolo