]> git.proxmox.com Git - qemu.git/commitdiff
w64: Fix data types in cpu-all.h, exec.c
authorStefan Weil <sw@weilnetz.de>
Fri, 16 Mar 2012 19:23:49 +0000 (20:23 +0100)
committerStefan Weil <sw@weilnetz.de>
Sun, 15 Apr 2012 19:25:16 +0000 (21:25 +0200)
w64 needs uintptr_t instead of unsigned long.
For other hosts, nothing changes.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
cpu-all.h
exec.c

index 58420be86f53eff486a869d0ba9d247658c72980..f7d6867b0daa5bbce8e8ad61d73ff85bdc040f80 100644 (file)
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -299,10 +299,10 @@ extern unsigned long reserved_va;
 #define TARGET_PAGE_MASK ~(TARGET_PAGE_SIZE - 1)
 #define TARGET_PAGE_ALIGN(addr) (((addr) + TARGET_PAGE_SIZE - 1) & TARGET_PAGE_MASK)
 
-/* ??? These should be the larger of unsigned long and target_ulong.  */
-extern unsigned long qemu_real_host_page_size;
-extern unsigned long qemu_host_page_size;
-extern unsigned long qemu_host_page_mask;
+/* ??? These should be the larger of uintptr_t and target_ulong.  */
+extern uintptr_t qemu_real_host_page_size;
+extern uintptr_t qemu_host_page_size;
+extern uintptr_t qemu_host_page_mask;
 
 #define HOST_PAGE_ALIGN(addr) (((addr) + qemu_host_page_size - 1) & qemu_host_page_mask)
 
diff --git a/exec.c b/exec.c
index 68b8a6a2ba75f42177cca3c7fab74ff8ee5272b5..3dda2ca271ace95f26d9743f92e0e5a6fd91efa8 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -177,9 +177,9 @@ typedef struct PageDesc {
 
 #define V_L1_SHIFT (L1_MAP_ADDR_SPACE_BITS - TARGET_PAGE_BITS - V_L1_BITS)
 
-unsigned long qemu_real_host_page_size;
-unsigned long qemu_host_page_size;
-unsigned long qemu_host_page_mask;
+uintptr_t qemu_real_host_page_size;
+uintptr_t qemu_host_page_size;
+uintptr_t qemu_host_page_mask;
 
 /* This is a multi-level map on the virtual address space.
    The bottom level has pointers to PageDesc.  */