summaryrefslogtreecommitdiff
path: root/target-alpha
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-04-02 13:36:31 +0200
committerAurelien Jarno <aurelien@aurel32.net>2011-04-10 00:45:16 +0200
commitc97ba5bec93ebbd46ae102dc75bca2e9eae334f8 (patch)
tree22532f10fa69f908d2eacfaf539fa37614c52e6a /target-alpha
parent9a1d4103d00cb71fe9ce5e570f8f0a065b29a5dc (diff)
downloadqemu-c97ba5bec93ebbd46ae102dc75bca2e9eae334f8.tar.gz
qemu-c97ba5bec93ebbd46ae102dc75bca2e9eae334f8.tar.bz2
qemu-c97ba5bec93ebbd46ae102dc75bca2e9eae334f8.zip
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 (suggested by Blue Swirl). These changes are needed for build environments where sizeof(long) != sizeof(void *), especially for w64. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-alpha')
-rw-r--r--target-alpha/translate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 3a1c625f73..96e922b569 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -398,7 +398,7 @@ static ExitStatus gen_bdirect(DisasContext *ctx, int ra, int32_t disp)
} else if (use_goto_tb(ctx, dest)) {
tcg_gen_goto_tb(0);
tcg_gen_movi_i64(cpu_pc, dest);
- tcg_gen_exit_tb((long)ctx->tb);
+ tcg_gen_exit_tb((tcg_target_long)ctx->tb);
return EXIT_GOTO_TB;
} else {
tcg_gen_movi_i64(cpu_pc, dest);
@@ -417,12 +417,12 @@ static ExitStatus gen_bcond_internal(DisasContext *ctx, TCGCond cond,
tcg_gen_goto_tb(0);
tcg_gen_movi_i64(cpu_pc, ctx->pc);
- tcg_gen_exit_tb((long)ctx->tb);
+ tcg_gen_exit_tb((tcg_target_long)ctx->tb);
gen_set_label(lab_true);
tcg_gen_goto_tb(1);
tcg_gen_movi_i64(cpu_pc, dest);
- tcg_gen_exit_tb((long)ctx->tb + 1);
+ tcg_gen_exit_tb((tcg_target_long)ctx->tb + 1);
return EXIT_GOTO_TB;
} else {