diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-04-15 16:13:48 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-04-15 17:33:39 +0200 |
commit | 5724753e6576fc26ff4a563a6c2ccb8ce3b02cb8 (patch) | |
tree | 82c9b3366b3dc32839157c78cb4215af51664f29 | |
parent | a13895420561da4f8eae03f4d423a7c2fdb83f65 (diff) |
target-ppc: Fix type casts for w64 (uintptr_t)
This changes nothing for other hosts.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r-- | target-ppc/translate_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 025122d3ff..fdc0a5ff08 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -9504,12 +9504,12 @@ enum { static inline int is_indirect_opcode (void *handler) { - return ((unsigned long)handler & 0x03) == PPC_INDIRECT; + return ((uintptr_t)handler & 0x03) == PPC_INDIRECT; } static inline opc_handler_t **ind_table(void *handler) { - return (opc_handler_t **)((unsigned long)handler & ~3); + return (opc_handler_t **)((uintptr_t)handler & ~3); } /* Instruction table creation */ @@ -9528,7 +9528,7 @@ static int create_new_table (opc_handler_t **table, unsigned char idx) tmp = malloc(0x20 * sizeof(opc_handler_t)); fill_new_table(tmp, 0x20); - table[idx] = (opc_handler_t *)((unsigned long)tmp | PPC_INDIRECT); + table[idx] = (opc_handler_t *)((uintptr_t)tmp | PPC_INDIRECT); return 0; } |