]> git.proxmox.com Git - qemu.git/blobdiff - target-m68k/translate.c
Fix conversions from pointer to tcg_target_long
[qemu.git] / target-m68k / translate.c
index 6f72a2bdd2fc4ccd5270aa6bfb0c6118a590025b..038c0af3ef5ac7853ca987f942785b38844c6e62 100644 (file)
@@ -861,7 +861,7 @@ static void gen_jmp_tb(DisasContext *s, int n, uint32_t dest)
                (s->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)) {
         tcg_gen_goto_tb(n);
         tcg_gen_movi_i32(QREG_PC, dest);
-        tcg_gen_exit_tb((long)tb + n);
+        tcg_gen_exit_tb((tcg_target_long)tb + n);
     } else {
         gen_jmp_im(s, dest);
         tcg_gen_exit_tb(0);