Make cpu_single_env thread-local
commitb3c4bbe56dc707102d3abd969f51bb2aa9c6c53d
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Oct 2011 09:52:42 +0000 (28 10:52 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Nov 2011 15:58:08 +0000 (1 10:58 -0500)
tree4494108465a1d39a4421da8c945db566a6691089
parent8a5f7b03a0a711ec8e04aeebe339cdb8b876794b
Make cpu_single_env thread-local

Make cpu_single_env thread-local. This fixes a regression
in handling of multi-threaded programs in linux-user mode
(bug 823902).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[Peter Maydell: rename tls_cpu_single_env to cpu_single_env]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpu-all.h
exec.c