From: Richard Henderson Date: Wed, 30 Apr 2014 18:40:58 +0000 (-0700) Subject: tcg-ppc: Use uintptr_t in ppc_tb_set_jmp_target X-Git-Tag: v2.1.0-rc0~32^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9171478c954cfce97a0d3c827e82da723a4a091c;p=thirdparty%2Fqemu.git tcg-ppc: Use uintptr_t in ppc_tb_set_jmp_target Tested-by: Tom Musta Signed-off-by: Richard Henderson --- diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 3d62d9c464c..5e5d86ec46f 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -224,7 +224,7 @@ static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) /* no need to flush icache explicitly */ } #elif defined(_ARCH_PPC) -void ppc_tb_set_jmp_target(unsigned long jmp_addr, unsigned long addr); +void ppc_tb_set_jmp_target(uintptr_t jmp_addr, uintptr_t addr); #define tb_set_jmp_target1 ppc_tb_set_jmp_target #elif defined(__i386__) || defined(__x86_64__) static inline void tb_set_jmp_target1(uintptr_t jmp_addr, uintptr_t addr) diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index 436b65bffb9..d64eaa5f4f7 100644 --- a/tcg/ppc/tcg-target.c +++ b/tcg/ppc/tcg-target.c @@ -1318,7 +1318,7 @@ static void tcg_out_brcond2 (TCGContext *s, const TCGArg *args, tcg_out_bc (s, (BC | BI (7, CR_EQ) | BO_COND_TRUE), args[5]); } -void ppc_tb_set_jmp_target (unsigned long jmp_addr, unsigned long addr) +void ppc_tb_set_jmp_target (uintptr_t jmp_addr, uintptr_t addr) { uint32_t *ptr; long disp = addr - jmp_addr;