]> git.proxmox.com Git - qemu.git/blobdiff - target-i386/translate.c
Fix conversions from pointer to tcg_target_long
[qemu.git] / target-i386 / translate.c
index c00845038a8d1666b163c94a40cd4dce5eb9ef48..7d1340ed015515498417dc3bd2380daa7bb0e3a4 100644 (file)
@@ -2274,7 +2274,7 @@ static inline void gen_goto_tb(DisasContext *s, int tb_num, target_ulong eip)
         /* jump to same page: we can use a direct jump */
         tcg_gen_goto_tb(tb_num);
         gen_jmp_im(eip);
-        tcg_gen_exit_tb((long)tb + tb_num);
+        tcg_gen_exit_tb((tcg_target_long)tb + tb_num);
     } else {
         /* jump to another page: currently not optimized */
         gen_jmp_im(eip);