From: SeokYeon Hwang Date: Wed, 26 Aug 2015 06:20:36 +0000 (+0900) Subject: hax: some API that HAX used are modified X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fcb10ec7d4fbda1855421f5eb1a6ab3266cd50f;p=sdk%2Femulator%2Fqemu.git hax: some API that HAX used are modified Change-Id: I81c401172ce9b00d29d5dd565dced1130fa88dbd Signed-off-by: SeokYeon Hwang --- diff --git a/exec.c b/exec.c index fd38f8a503..5fad9975c1 100644 --- a/exec.c +++ b/exec.c @@ -1523,7 +1523,7 @@ static ram_addr_t ram_block_add(RAMBlock *new_block, Error **errp) */ if (hax_enabled()) { int ret = hax_populate_ram((uint64_t)(uintptr_t)new_block->host, - new_block->length); + new_block->max_length); if (ret < 0) { fprintf(stderr, "HAX failed to populate ram\n"); exit(-1); diff --git a/target-i386/hax-all.c b/target-i386/hax-all.c index 8a0151778e..3ca3981e17 100644 --- a/target-i386/hax-all.c +++ b/target-i386/hax-all.c @@ -72,7 +72,7 @@ static int hax_prepare_emulation(CPUArchState *env) { /* Flush all emulation states */ tlb_flush(ENV_GET_CPU(env), 1); - tb_flush(env); + tb_flush(ENV_GET_CPU(env)); /* Sync the vcpu state from hax kernel module */ hax_vcpu_sync_state(env, 0); return 0; @@ -411,12 +411,12 @@ static void hax_log_global_stop(struct MemoryListener *listener) } static void hax_log_start(MemoryListener *listener, - MemoryRegionSection *section) + MemoryRegionSection *section, int old, int new) { } static void hax_log_stop(MemoryListener *listener, - MemoryRegionSection *section) + MemoryRegionSection *section, int old, int new) { }