summaryrefslogtreecommitdiff
path: root/exec.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-08-26 00:17:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-09 15:34:53 +0200
commitf240eb6fdcf63a5600e15fb44c6960586459a97f (patch)
tree2b354a527fe9e1bc8e0c1597374e75c318a8e138 /exec.c
parent9373e63297c43752f9cf085feb7f5aed57d959f8 (diff)
downloadqemu-f240eb6fdcf63a5600e15fb44c6960586459a97f.tar.gz
qemu-f240eb6fdcf63a5600e15fb44c6960586459a97f.tar.bz2
qemu-f240eb6fdcf63a5600e15fb44c6960586459a97f.zip
remove qemu/tls.h
TLS is now required on all platforms, so DECLARE_TLS/DEFINE_TLS is not needed anymore. Removing it does not break Windows because of the previous patch. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 54cd70ac1e..0f2feb9642 100644
--- a/exec.c
+++ b/exec.c
@@ -90,7 +90,7 @@ static MemoryRegion io_mem_unassigned;
struct CPUTailQ cpus = QTAILQ_HEAD_INITIALIZER(cpus);
/* current CPU in the current thread. It is only valid inside
cpu_exec() */
-DEFINE_TLS(CPUState *, current_cpu);
+__thread CPUState *current_cpu;
/* 0 = Do not count executed instructions.
1 = Precise instruction counting.
2 = Adaptive rate instruction counting. */