提交 5724753e 编写于 作者: S Stefan Weil 提交者: Andreas Färber

target-ppc: Fix type casts for w64 (uintptr_t)

This changes nothing for other hosts.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NAndreas Färber <afaerber@suse.de>
上级 a1389542
...@@ -9504,12 +9504,12 @@ enum { ...@@ -9504,12 +9504,12 @@ enum {
static inline int is_indirect_opcode (void *handler) 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) 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 */ /* Instruction table creation */
...@@ -9528,7 +9528,7 @@ static int create_new_table (opc_handler_t **table, unsigned char idx) ...@@ -9528,7 +9528,7 @@ static int create_new_table (opc_handler_t **table, unsigned char idx)
tmp = malloc(0x20 * sizeof(opc_handler_t)); tmp = malloc(0x20 * sizeof(opc_handler_t));
fill_new_table(tmp, 0x20); 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; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册