]> git.proxmox.com Git - qemu.git/blobdiff - target-cris/translate.c
Fix conversions from pointer to tcg_target_long
[qemu.git] / target-cris / translate.c
index b4648a01dee396d47051027a303ea63384d09a0a..1c03fa5fb6bb785adb861d9e2ccffe13c6bc51df 100644 (file)
@@ -596,7 +596,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
        if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK)) {
                tcg_gen_goto_tb(n);
                tcg_gen_movi_tl(env_pc, dest);
-               tcg_gen_exit_tb((long)tb + n);
+                tcg_gen_exit_tb((tcg_target_long)tb + n);
        } else {
                tcg_gen_movi_tl(env_pc, dest);
                tcg_gen_exit_tb(0);