Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGviu-00078T-NH for qemu-devel@nongnu.org; Mon, 11 Oct 2004 04:40:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGvis-000771-ID for qemu-devel@nongnu.org; Mon, 11 Oct 2004 04:40:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGvis-00076e-7s for qemu-devel@nongnu.org; Mon, 11 Oct 2004 04:40:02 -0400 Received: from [206.190.39.122] (helo=web52501.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1CGvbc-0000J7-5g for qemu-devel@nongnu.org; Mon, 11 Oct 2004 04:32:32 -0400 Message-ID: <20041011083228.6907.qmail@web52501.mail.yahoo.com> Date: Mon, 11 Oct 2004 01:32:28 -0700 (PDT) From: Piotr Krysik MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] env in TLS 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 Hi! Fabrice, how about moving env variable to TLS? This could improve performance (based on http://lists.gnu.org/archive/html/qemu-devel/2004-09/msg00294.html about 10% could be gained -- need to verify). Also additional register would be available for op.c (anyone to implement register renaming?). The main problem with this approach is portability. AFAIK GCC <= 3.2 doesn't recognize __thread keyword. For x86 we could fall-back to the LDT method from qemu-fast. How about other platforms? In the worst case we could use global variable and forget about multi-processor qemu-softmmu and multi-thread in qemu-user for some platforms in the future. Comments? Piotrek __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com