diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-04-02 13:36:31 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-10 00:45:16 +0200 |
commit | c97ba5bec93ebbd46ae102dc75bca2e9eae334f8 (patch) | |
tree | 22532f10fa69f908d2eacfaf539fa37614c52e6a /target-sparc | |
parent | 9a1d4103d00cb71fe9ce5e570f8f0a065b29a5dc (diff) | |
download | qemu-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-sparc')
-rw-r--r-- | target-sparc/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index e26462eef5..883ecd2d2f 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -241,7 +241,7 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num, tcg_gen_goto_tb(tb_num); tcg_gen_movi_tl(cpu_pc, pc); tcg_gen_movi_tl(cpu_npc, npc); - 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_tl(cpu_pc, pc); |