Received: from eggs.gnu.org ([140.186.70.92]:43264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJj7Q-0003L3-Cy for qemu-devel@nongnu.org; Fri, 28 Oct 2011 05:52:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJj7O-000532-Iu for qemu-devel@nongnu.org; Fri, 28 Oct 2011 05:52:56 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:36478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJj7O-000528-CG for qemu-devel@nongnu.org; Fri, 28 Oct 2011 05:52:54 -0400 From: Peter Maydell Date: Fri, 28 Oct 2011 10:52:39 +0100 Message-Id: <1319795562-18091-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v3 0/3] TLS abstraction layer for thread-local cpu_single_env on Linux List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , "Dr. David Alan Gilbert" , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Jan Kiszka , patches@linaro.org These patches add enough of the TLS abstraction layer to allow us to make cpu_single_env thread-local on Linux systems. This fixes the regression described in bug 823902 for the 1.0 release; we can add the Win32 and POSIX implementations later. I haven't included Paolo's "Prepare Windows port for thread-local cpu_single_env" patch -- it would be safe to do so but it isn't necessary until we actually implement TLS for Win32. Changes v1->v2: * fix Paolo's email address * split the darwin-user change out into a separate patch * drop the 'tls_' prefix from the cpu_single_env tls var name Changes v2->v3: * minor rearrangement of copyright notice in comment * added a missing Signed-off-by * fixed the name of the multiple-include-guard #define Paolo Bonzini (2): darwin-user/main.c: Drop unused cpu_single_env definition Make cpu_single_env thread-local Peter Maydell (1): qemu-tls.h: Add abstraction layer for TLS variables cpu-all.h | 4 +++- darwin-user/main.c | 2 -- exec.c | 2 +- qemu-tls.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 qemu-tls.h