From: SeokYeon Hwang Date: Fri, 1 Aug 2014 04:04:32 +0000 (+0900) Subject: HAX: fix performance degradation on HAX X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~228^2^2~48^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132b8a67dfeec96df4b595eb71037f504df84798;p=sdk%2Femulator%2Fqemu.git HAX: fix performance degradation on HAX HAX should listen to only main memory address space. This patch would enhance performance on Windows and MacOS. Change-Id: I3589de6db5846329314cfb3ed98f17355efe4fe7 Signed-off-by: SeokYeon Hwang --- diff --git a/target-i386/hax-all.c b/target-i386/hax-all.c index 12df8c18ff..a41f4c37d3 100644 --- a/target-i386/hax-all.c +++ b/target-i386/hax-all.c @@ -27,6 +27,7 @@ #include "strings.h" #include "hax-i386.h" #include "sysemu/kvm.h" +#include "exec/address-spaces.h" #define HAX_EMUL_ONE 0x1 #define HAX_EMUL_REAL 0x2 @@ -506,7 +507,7 @@ static int hax_init(void) goto error; } - memory_listener_register(&hax_memory_listener, NULL); + memory_listener_register(&hax_memory_listener, &address_space_memory); hax_support = 1;