aboutsummaryrefslogtreecommitdiff
path: root/softmmu_header.h
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-12 14:14:51 +0200
committerStefan Weil <sw@weilnetz.de>2012-04-15 21:25:17 +0200
commitb065927a02cbbaca032ed20d3039baca0914165c (patch)
tree7239e691ca9b33b5fc6c25d0e9b24bbcf6b3dda8 /softmmu_header.h
parent8efe0ca83eb9c5f996acc7a37d522da5c542ec79 (diff)
downloadqemu-b065927a02cbbaca032ed20d3039baca0914165c.zip
qemu-b065927a02cbbaca032ed20d3039baca0914165c.tar.gz
qemu-b065927a02cbbaca032ed20d3039baca0914165c.tar.bz2
w64: Fix data types in softmmu*.h
w64 requires uintptr_t. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'softmmu_header.h')
-rw-r--r--softmmu_header.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/softmmu_header.h b/softmmu_header.h
index 289dae2..cf1aa38 100644
--- a/softmmu_header.h
+++ b/softmmu_header.h
@@ -111,7 +111,7 @@ glue(glue(glue(CPU_PREFIX, ld), USUFFIX), MEMSUFFIX)(ENV_PARAM
mmu_idx);
} else {
uintptr_t hostaddr = addr + env->tlb_table[mmu_idx][page_index].addend;
- res = glue(glue(ld, USUFFIX), _raw)((uint8_t *)hostaddr);
+ res = glue(glue(ld, USUFFIX), _raw)(hostaddr);
}
return res;
}
@@ -134,7 +134,7 @@ glue(glue(glue(CPU_PREFIX, lds), SUFFIX), MEMSUFFIX)(ENV_PARAM
MMUSUFFIX)(ENV_VAR addr, mmu_idx);
} else {
uintptr_t hostaddr = addr + env->tlb_table[mmu_idx][page_index].addend;
- res = glue(glue(lds, SUFFIX), _raw)((uint8_t *)hostaddr);
+ res = glue(glue(lds, SUFFIX), _raw)(hostaddr);
}
return res;
}
@@ -161,7 +161,7 @@ glue(glue(glue(CPU_PREFIX, st), SUFFIX), MEMSUFFIX)(ENV_PARAM target_ulong ptr,
mmu_idx);
} else {
uintptr_t hostaddr = addr + env->tlb_table[mmu_idx][page_index].addend;
- glue(glue(st, SUFFIX), _raw)((uint8_t *)hostaddr, v);
+ glue(glue(st, SUFFIX), _raw)(hostaddr, v);
}
}