summaryrefslogtreecommitdiff
path: root/target-i386/hax-windows.c
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2014-07-15 16:05:28 +0900
committerSeokYeon Hwang <syeon.hwang@samsung.com>2014-07-16 22:08:16 +0900
commit7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c (patch)
treef775f82263dc519bf0c9186ccc2688f1c451399e /target-i386/hax-windows.c
parentacfea61fed0c9b5a0baa1f6dac3dd85e3fb28370 (diff)
downloadqemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.tar.gz
qemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.tar.bz2
qemu-7b9cea0596269db57a0a7335ed9d62eeb7d7ef4c.zip
emulator: fix some compilation warnings on Windows
Fix compilation warnings -Wpointer-to-int-cast, -Wint-to-pointor-cast. Change-Id: I85d9063e7d89d88a27da7e90d76c1b8bd6a11fc8 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Diffstat (limited to 'target-i386/hax-windows.c')
-rw-r--r--target-i386/hax-windows.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target-i386/hax-windows.c b/target-i386/hax-windows.c
index 10d49bcff7..d6f402a8ac 100644
--- a/target-i386/hax-windows.c
+++ b/target-i386/hax-windows.c
@@ -121,8 +121,8 @@ int hax_set_phys_mem(MemoryRegionSection *section)
info.pa_start = start_addr;
info.size = size;
- info.va = (uint64_t)(memory_region_get_ram_ptr(mr) +
- section->offset_within_region);
+ info.va = (uint64_t)(intptr_t)(memory_region_get_ram_ptr(mr) +
+ section->offset_within_region);
info.flags = memory_region_is_rom(mr) ? 1 : 0;
hDeviceVM = hax_global.vm->fd;
@@ -357,8 +357,8 @@ int hax_host_setup_vcpu_channel(struct hax_vcpu_state *vcpu)
ret = -EINVAL;
return ret;
}
- vcpu->tunnel = (struct hax_tunnel *)(info.va);
- vcpu->iobuf = (unsigned char *)(info.io_va);
+ vcpu->tunnel = (struct hax_tunnel *)(intptr_t)(info.va);
+ vcpu->iobuf = (unsigned char *)(intptr_t)(info.io_va);
return 0;
}