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~231^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fc3ca718f5a4c01c05fbf41d585e86d980b5b9d;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 9b9449f2ae..f20a614962 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;