aboutsummaryrefslogtreecommitdiff
path: root/target-moxie
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-03-24 09:04:48 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-03-30 14:03:42 +0000
commite06335b9515f0508f33846e58b2028dfa4fc9983 (patch)
tree8cf91d9dc5447a78d4509a67765468d0e3600081 /target-moxie
parentc9721215126a8ef46abd2e762efd6aa5ff6b92b9 (diff)
downloadqemu-e06335b9515f0508f33846e58b2028dfa4fc9983.zip
qemu-e06335b9515f0508f33846e58b2028dfa4fc9983.tar.gz
qemu-e06335b9515f0508f33846e58b2028dfa4fc9983.tar.bz2
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')
-rw-r--r--target-moxie/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-moxie/translate.c b/target-moxie/translate.c
index 34f166e..cc02bd3 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) {