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 | 4b4a72e55660abf7efe85aca78762dcfea5519ad (patch) | |
tree | 22532f10fa69f908d2eacfaf539fa37614c52e6a /target-lm32 | |
parent | 2caa9e9d2e0f356cc244bc41ce1d3e81663f6782 (diff) | |
download | qemu-4b4a72e55660abf7efe85aca78762dcfea5519ad.zip qemu-4b4a72e55660abf7efe85aca78762dcfea5519ad.tar.gz qemu-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 <weil@mail.berlios.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-lm32')
-rw-r--r-- | target-lm32/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-lm32/translate.c b/target-lm32/translate.c index 666d5f4..efc9b5a 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -138,7 +138,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest) likely(!dc->singlestep_enabled)) { tcg_gen_goto_tb(n); tcg_gen_movi_tl(cpu_pc, dest); - tcg_gen_exit_tb((long)tb + n); + tcg_gen_exit_tb((tcg_target_long)tb + n); } else { tcg_gen_movi_tl(cpu_pc, dest); if (dc->singlestep_enabled) { |