Received: from eggs.gnu.org ([140.186.70.92]:58307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ60m-0001ZY-I4 for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:07:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ60g-0005tO-Mn for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:07:28 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:52409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ60g-0005rj-DV for qemu-devel@nongnu.org; Wed, 26 Oct 2011 12:07:22 -0400 From: Peter Maydell Date: Wed, 26 Oct 2011 17:07:09 +0100 Message-Id: <1319645231-14151-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] 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" , Jan Kiszka 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. Paolo Bonzini (1): 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 | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 qemu-tls.h