From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utkjs-00014F-4M for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Utkjm-0006rT-Td for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:30:20 -0400 Received: from mail-ye0-x22d.google.com ([2607:f8b0:4002:c04::22d]:65158) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Utkjm-0006rH-Om for qemu-devel@nongnu.org; Mon, 01 Jul 2013 16:30:14 -0400 Received: by mail-ye0-f173.google.com with SMTP id m7so1309355yen.18 for ; Mon, 01 Jul 2013 13:30:14 -0700 (PDT) Sender: Richard Henderson Message-ID: <51D1E6D1.9070505@twiddle.net> Date: Mon, 01 Jul 2013 13:30:09 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1372671341-19855-1-git-send-email-stefanha@redhat.com> <1372671341-19855-3-git-send-email-stefanha@redhat.com> In-Reply-To: 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: Peter Maydell Cc: Paolo Bonzini , Ed Maste , qemu-devel , Stefan Hajnoczi 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. r~