All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-moxie: Fix pointer-to-integer conversion (MinGW-w64)
@ 2013-03-24  8:04 Stefan Weil
  2013-03-28 19:00 ` Anthony Green
  2013-03-30 18:53 ` Blue Swirl
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Weil @ 2013-03-24  8:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Blue Swirl, Stefan Weil, Anthony Green

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>
---
 target-moxie/translate.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-30 18:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-24  8:04 [Qemu-devel] [PATCH] target-moxie: Fix pointer-to-integer conversion (MinGW-w64) Stefan Weil
2013-03-28 19:00 ` Anthony Green
2013-03-29  7:47   ` Stefan Weil
2013-03-30 14:00   ` Blue Swirl
2013-03-30 18:53 ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.