aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/cpu.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 /include/qemu/cpu.h
parent2d797b6520d38bc66827b2022e9c620058f18de3 (diff)
downloadqemu-bcba2a72ed0e0620438929942cb486ad3d08d168.zip
qemu-bcba2a72ed0e0620438929942cb486ad3d08d168.tar.gz
qemu-bcba2a72ed0e0620438929942cb486ad3d08d168.tar.bz2
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 'include/qemu/cpu.h')
-rw-r--r--include/qemu/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h
index 78b65b3..5d52e1c 100644
--- a/include/qemu/cpu.h
+++ b/include/qemu/cpu.h
@@ -21,6 +21,7 @@
#define QEMU_CPU_H
#include "qemu/object.h"
+#include "qemu-thread.h"
/**
* SECTION:cpu
@@ -61,6 +62,10 @@ struct CPUState {
Object parent_obj;
/*< public >*/
+#ifdef _WIN32
+ HANDLE hThread;
+#endif
+
/* TODO Move common fields from CPUArchState here. */
};