From: Richard Henderson Date: Wed, 26 Apr 2017 17:37:42 +0000 (-0700) Subject: target/nios2: Fix 64-bit ilp32 compilation X-Git-Tag: qemu-xen-4.10.0-rc1~217^2~25 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1639a965d30b45b10134b69bf49dd3e657d2ef09;p=qemu-xen.git target/nios2: Fix 64-bit ilp32 compilation Avoid a "cast from pointer to integer of different size" warning by using the proper host type. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- diff --git a/target/nios2/translate.c b/target/nios2/translate.c index cfec47959d..2f3c2e5dfb 100644 --- a/target/nios2/translate.c +++ b/target/nios2/translate.c @@ -164,7 +164,7 @@ static void gen_goto_tb(DisasContext *dc, int n, uint32_t dest) if (use_goto_tb(dc, dest)) { tcg_gen_goto_tb(n); tcg_gen_movi_tl(dc->cpu_R[R_PC], dest); - tcg_gen_exit_tb((tcg_target_long)tb + n); + tcg_gen_exit_tb((uintptr_t)tb + n); } else { tcg_gen_movi_tl(dc->cpu_R[R_PC], dest); tcg_gen_exit_tb(0);