From 2fcb10ec7d4fbda1855421f5eb1a6ab3266cd50f Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Wed, 26 Aug 2015 15:20:36 +0900 Subject: [PATCH] hax: some API that HAX used are modified Change-Id: I81c401172ce9b00d29d5dd565dced1130fa88dbd Signed-off-by: SeokYeon Hwang --- exec.c | 2 +- target-i386/hax-all.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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) { } -- 2.34.1