diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-03-24 09:04:48 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-03-30 14:03:42 +0000 |
commit | e06335b9515f0508f33846e58b2028dfa4fc9983 (patch) | |
tree | 8cf91d9dc5447a78d4509a67765468d0e3600081 /target-moxie/translate.c | |
parent | c9721215126a8ef46abd2e762efd6aa5ff6b92b9 (diff) |
target-moxie: Fix pointer-to-integer conversion (MinGW-w64)
The type cast must use tcg_target_long instead of long.
This makes a difference for hosts where sizeof(long) != sizeof(void *).
Cc: Anthony Green <green@moxielogic.com>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Green <green@moxielogic.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-moxie/translate.c')
-rw-r--r-- | target-moxie/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/translate.c b/target-moxie/translate.c index 34f166e98f..cc02bd36f2 100644 --- a/target-moxie/translate.c +++ b/target-moxie/translate.c @@ -133,7 +133,7 @@ static inline void gen_goto_tb(CPUMoxieState *env, DisasContext *ctx, !ctx->singlestep_enabled) { tcg_gen_goto_tb(n); tcg_gen_movi_i32(cpu_pc, dest); - tcg_gen_exit_tb((long) tb + n); + tcg_gen_exit_tb((tcg_target_long)tb + n); } else { tcg_gen_movi_i32(cpu_pc, dest); if (ctx->singlestep_enabled) { |