mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
9373e63297
commit
f240eb6fdc
3 changed files with 2 additions and 56 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "exec/memattrs.h"
|
||||
#include "qemu/queue.h"
|
||||
#include "qemu/thread.h"
|
||||
#include "qemu/tls.h"
|
||||
#include "qemu/typedefs.h"
|
||||
|
||||
typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
|
||||
|
@ -333,8 +332,7 @@ extern struct CPUTailQ cpus;
|
|||
QTAILQ_FOREACH_REVERSE(cpu, &cpus, CPUTailQ, node)
|
||||
#define first_cpu QTAILQ_FIRST(&cpus)
|
||||
|
||||
DECLARE_TLS(CPUState *, current_cpu);
|
||||
#define current_cpu tls_var(current_cpu)
|
||||
extern __thread CPUState *current_cpu;
|
||||
|
||||
/**
|
||||
* cpu_paging_enabled:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue