aboutsummaryrefslogtreecommitdiff
path: root/cpu-defs.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2012-05-02 15:24:40 +0200
committerAndreas Färber <afaerber@suse.de>2012-08-02 18:12:16 +0200
commitbcba2a72ed0e0620438929942cb486ad3d08d168 (patch)
tree4cc5cfb96755b983fd0abbcf1e7629ab48783bfd /cpu-defs.h
parent2d797b6520d38bc66827b2022e9c620058f18de3 (diff)
cpu: Move CPU_COMMON_THREAD into CPUState
CPU_COMMON_THREAD was only used for Windows, adding an hThread field to CPU_COMMON. Move the field into QOM CPUState and change its type to HANDLE, which it is assigned from. This requires Windows headers, pulled in through qemu-thread.h. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'cpu-defs.h')
-rw-r--r--cpu-defs.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/cpu-defs.h b/cpu-defs.h
index f49e9500a9..d0dd781046 100644
--- a/cpu-defs.h
+++ b/cpu-defs.h
@@ -151,14 +151,6 @@ typedef struct CPUWatchpoint {
QTAILQ_ENTRY(CPUWatchpoint) entry;
} CPUWatchpoint;
-#ifdef _WIN32
-#define CPU_COMMON_THREAD \
- void *hThread;
-
-#else
-#define CPU_COMMON_THREAD
-#endif
-
#define CPU_TEMP_BUF_NLONGS 128
#define CPU_COMMON \
struct TranslationBlock *current_tb; /* currently executing TB */ \
@@ -217,7 +209,6 @@ typedef struct CPUWatchpoint {
uint32_t stop; /* Stop request */ \
uint32_t stopped; /* Artificially stopped */ \
struct QemuThread *thread; \
- CPU_COMMON_THREAD \
struct QemuCond *halt_cond; \
int thread_kicked; \
struct qemu_work_item *queued_work_first, *queued_work_last; \