diff options
author | Andreas Färber <afaerber@suse.de> | 2012-05-02 15:24:40 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-08-02 18:12:16 +0200 |
commit | bcba2a72ed0e0620438929942cb486ad3d08d168 (patch) | |
tree | 4cc5cfb96755b983fd0abbcf1e7629ab48783bfd /include | |
parent | 2d797b6520d38bc66827b2022e9c620058f18de3 (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 'include')
-rw-r--r-- | include/qemu/cpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h index 78b65b35fc..5d52e1cd54 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. */ }; |