diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-04-12 14:14:51 +0200 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2012-04-15 21:25:17 +0200 |
commit | b065927a02cbbaca032ed20d3039baca0914165c (patch) | |
tree | 7239e691ca9b33b5fc6c25d0e9b24bbcf6b3dda8 /softmmu_header.h | |
parent | 8efe0ca83eb9c5f996acc7a37d522da5c542ec79 (diff) |
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.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/softmmu_header.h b/softmmu_header.h index 289dae2e54..cf1aa38fc7 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); } } |