]> Git Repo - qemu.git/blobdiff - include/qemu/cpu.h
cpu: Move thread field into CPUState
[qemu.git] / include / qemu / cpu.h
index 4291279bc5f1007403e73e7efade0b94b2170502..d20644bc795adf8f2ecc2998cb1f4465b9b95ec7 100644 (file)
@@ -21,6 +21,7 @@
 #define QEMU_CPU_H
 
 #include "qemu/object.h"
+#include "qemu-thread.h"
 
 /**
  * SECTION:cpu
@@ -39,7 +40,7 @@ typedef struct CPUState CPUState;
 
 /**
  * CPUClass:
- * @reset: Callback to reset the #CPU to its initial state.
+ * @reset: Callback to reset the #CPUState to its initial state.
  *
  * Represents a CPU family or model.
  */
@@ -61,7 +62,12 @@ struct CPUState {
     Object parent_obj;
     /*< public >*/
 
-    /* TODO Move common fields from CPUState here. */
+    struct QemuThread *thread;
+#ifdef _WIN32
+    HANDLE hThread;
+#endif
+
+    /* TODO Move common fields from CPUArchState here. */
 };
 
 
This page took 0.021836 seconds and 4 git commands to generate.