Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGxbQ-0006oN-Qf for qemu-devel@nongnu.org; Mon, 11 Oct 2004 06:40:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGxbM-0006lE-Ma for qemu-devel@nongnu.org; Mon, 11 Oct 2004 06:40:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGxbL-0006jR-6m for qemu-devel@nongnu.org; Mon, 11 Oct 2004 06:40:23 -0400 Received: from [212.238.201.82] (helo=xi.wantstofly.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGxUJ-000821-7q for qemu-devel@nongnu.org; Mon, 11 Oct 2004 06:33:07 -0400 Date: Mon, 11 Oct 2004 12:33:05 +0200 From: Lennert Buytenhek Subject: Re: [Qemu-devel] env in TLS Message-ID: <20041011103305.GA8355@xi.wantstofly.org> References: <20041011083228.6907.qmail@web52501.mail.yahoo.com> <416A5551.9080703@bellard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416A5551.9080703@bellard.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Oct 11, 2004 at 11:41:37AM +0200, Fabrice Bellard wrote: > Using TLS seems a good idea. I hesitated to implement it because I was > not sure that segment overrides were as fast as an indexed memory access > on all x86 processors. I think that imposing a gcc version >= 3.2 is no > longer an issue. We must be sure that the other platforms support the > __thread keyword though. At least the ARM (xscale) doesn't, even on gcc 3.3.3. There's also no NPTL for ARM, probably for that reason. [root@enp2611 tmp]# uname -a Linux enp2611.wantstofly.org 2.6.9-rc3 #12 Sun Oct 10 20:29:24 MEST 2004 armv4b armv4b armv4b GNU/Linux [root@enp2611 tmp]# gcc --version gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@enp2611 tmp]# cat x.c #include int __thread xyzzy; int main() { return 0; } [root@enp2611 tmp]# gcc -Wall -o x x.c x.c:3: error: thread-local storage not supported for this target [root@enp2611 tmp]# --L