aboutsummaryrefslogtreecommitdiff
path: root/target/i386/hax/hax-i386.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-03-29 19:13:09 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-06-28 13:55:35 +0200
commit642ce52d8ea9e1f80aa6013ad55bb66e51f1c76e (patch)
tree87e83eb4cb639d5b560a91be4d49701966e6524e /target/i386/hax/hax-i386.h
parentf861b3f39063619b2d169cbacf455a00c22a1584 (diff)
downloadqemu-642ce52d8ea9e1f80aa6013ad55bb66e51f1c76e.zip
qemu-642ce52d8ea9e1f80aa6013ad55bb66e51f1c76e.tar.gz
qemu-642ce52d8ea9e1f80aa6013ad55bb66e51f1c76e.tar.bz2
accel: Move HAX hThread to accelerator context
hThread variable is only used by the HAX accelerator, so move it to the accelerator specific context. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230624174121.11508-9-philmd@linaro.org>
Diffstat (limited to 'target/i386/hax/hax-i386.h')
-rw-r--r--target/i386/hax/hax-i386.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/i386/hax/hax-i386.h b/target/i386/hax/hax-i386.h
index 4372ee5..87153f4 100644
--- a/target/i386/hax/hax-i386.h
+++ b/target/i386/hax/hax-i386.h
@@ -27,6 +27,9 @@ typedef HANDLE hax_fd;
extern struct hax_state hax_global;
struct AccelCPUState {
+#ifdef _WIN32
+ HANDLE hThread;
+#endif
hax_fd fd;
int vcpu_id;
struct hax_tunnel *tunnel;