summaryrefslogtreecommitdiffstats
path: root/target-cris
authorStefan Weil <[email protected]>2011-04-02 11:36:31 (GMT)
committer Aurelien Jarno <[email protected]>2011-04-09 22:45:16 (GMT)
commit4b4a72e55660abf7efe85aca78762dcfea5519ad (patch) (side-by-side diff)
tree22532f10fa69f908d2eacfaf539fa37614c52e6a /target-cris
parent2caa9e9d2e0f356cc244bc41ce1d3e81663f6782 (diff)
downloadqemu-kvm-4b4a72e55660abf7efe85aca78762dcfea5519ad.zip
qemu-kvm-4b4a72e55660abf7efe85aca78762dcfea5519ad.tar.gz
qemu-kvm-4b4a72e55660abf7efe85aca78762dcfea5519ad.tar.bz2
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 <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
Diffstat (limited to 'target-cris') (more/less context) (ignore whitespace changes)
-rw-r--r--target-cris/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c
index b4648a0..1c03fa5 100644
--- a/target-cris/translate.c
+++ b/target-cris/translate.c
@@ -596,7 +596,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)) {
tcg_gen_goto_tb(n);
tcg_gen_movi_tl(env_pc, dest);
- tcg_gen_exit_tb((long)tb + n);
+ tcg_gen_exit_tb((tcg_target_long)tb + n);
} else {
tcg_gen_movi_tl(env_pc, dest);
tcg_gen_exit_tb(0);