target/riscv: optimize indirect branches
Signed-off-by: Emilio G. Cota <cota@braap.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
6dbebd5545
commit
3070543349
@ -548,7 +548,7 @@ static void gen_jalr(CPURISCVState *env, DisasContext *ctx, uint32_t opc,
|
|||||||
if (rd != 0) {
|
if (rd != 0) {
|
||||||
tcg_gen_movi_tl(cpu_gpr[rd], ctx->pc_succ_insn);
|
tcg_gen_movi_tl(cpu_gpr[rd], ctx->pc_succ_insn);
|
||||||
}
|
}
|
||||||
tcg_gen_exit_tb(NULL, 0);
|
tcg_gen_lookup_and_goto_ptr();
|
||||||
|
|
||||||
if (misaligned) {
|
if (misaligned) {
|
||||||
gen_set_label(misaligned);
|
gen_set_label(misaligned);
|
||||||
|
Loading…
Reference in New Issue
Block a user