From 3feaca9e88ddc72b3a9d7388fd542d1c0a5c24fb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 15 Jul 2011 21:38:12 +0200 Subject: Fix conversions from pointer to tcg_target_long tcg_gen_exit_tb takes a parameter of type tcg_target_long, so the type casts of pointer to long should be replaced by type casts of pointer to tcg_target_long. These changes are needed for build environments where sizeof(long) != sizeof(void *), especially for w64. See 4b4a72e55660abf7efe85aca78762dcfea5519ad which fixed the same issue for the other targets. Cc: Alexander Graf Cc: Guan Xuetao Acked-by: Guan Xuetao Acked-by: Alexander Graf Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- target-s390x/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-s390x') diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 77fb4482aa..6a22fded57 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -830,7 +830,7 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num, target_ulong pc) /* jump to same page: we can use a direct jump */ tcg_gen_goto_tb(tb_num); tcg_gen_movi_i64(psw_addr, pc); - tcg_gen_exit_tb((long)tb + tb_num); + tcg_gen_exit_tb((tcg_target_long)tb + tb_num); } else { /* jump to another page: currently not optimized */ tcg_gen_movi_i64(psw_addr, pc); -- cgit v1.2.3