From 6f8058238a63d0807d879fb2e924aff3d8f4bc67 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Tue, 10 Jan 2017 11:59:58 +0100 Subject: hax: add Darwin support Re-add the MacOSX/Darwin support: Use the Intel HAX is kernel-based hardware acceleration module (similar to KVM on Linux). Based on the original "target/i386: Add Intel HAX to android emulator" patch from David Chou from emu-2.2-release branch in the external/qemu-android repository. Signed-off-by: Vincent Palatin Message-Id: <81b85c3032da902e73e77302af508b4b1a7c0ead.1484045952.git.vpalatin@chromium.org> Signed-off-by: Paolo Bonzini --- target/i386/hax-i386.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/i386/hax-i386.h') diff --git a/target/i386/hax-i386.h b/target/i386/hax-i386.h index bcbd105356..8ffe91fcb5 100644 --- a/target/i386/hax-i386.h +++ b/target/i386/hax-i386.h @@ -16,6 +16,10 @@ #include "cpu.h" #include "sysemu/hax.h" +#ifdef CONFIG_DARWIN +typedef int hax_fd; +#endif + #ifdef CONFIG_WIN32 typedef HANDLE hax_fd; #endif @@ -77,6 +81,10 @@ hax_fd hax_mod_open(void); void hax_memory_init(void); +#ifdef CONFIG_DARWIN +#include "target/i386/hax-darwin.h" +#endif + #ifdef CONFIG_WIN32 #include "target/i386/hax-windows.h" #endif -- cgit v1.2.3