target/cris: Use tcg_gen_lookup_and_goto_ptr
We can use this in gen_goto_tb and for DISAS_JUMP to indirectly chain to the next TB. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
3173715195
commit
e0a4620c1f
|
@ -546,7 +546,7 @@ static void gen_goto_tb(DisasContext *dc, int n, target_ulong dest)
|
||||||
tcg_gen_exit_tb(dc->base.tb, n);
|
tcg_gen_exit_tb(dc->base.tb, n);
|
||||||
} else {
|
} else {
|
||||||
tcg_gen_movi_tl(env_pc, dest);
|
tcg_gen_movi_tl(env_pc, dest);
|
||||||
tcg_gen_exit_tb(NULL, 0);
|
tcg_gen_lookup_and_goto_ptr();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3354,6 +3354,8 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu)
|
||||||
tcg_gen_movi_tl(env_pc, npc);
|
tcg_gen_movi_tl(env_pc, npc);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case DISAS_JUMP:
|
case DISAS_JUMP:
|
||||||
|
tcg_gen_lookup_and_goto_ptr();
|
||||||
|
break;
|
||||||
case DISAS_UPDATE:
|
case DISAS_UPDATE:
|
||||||
/* Indicate that interupts must be re-evaluated before the next TB. */
|
/* Indicate that interupts must be re-evaluated before the next TB. */
|
||||||
tcg_gen_exit_tb(NULL, 0);
|
tcg_gen_exit_tb(NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue