]> git.proxmox.com Git - qemu.git/blobdiff - target-sh4/translate.c
Fix conversions from pointer to tcg_target_long
[qemu.git] / target-sh4 / translate.c
index 58e9b8f93b39f58003da9607d3aee337c37d0cda..88098d7c23bcfd31db145929e4921db9303a178a 100644 (file)
@@ -302,7 +302,7 @@ static void gen_goto_tb(DisasContext * ctx, int n, target_ulong dest)
        /* Use a direct jump if in same page and singlestep not 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)