diff options
author | Emilio G. Cota <cota@braap.org> | 2018-07-28 22:11:17 -0400 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2018-09-05 09:58:38 -0700 |
commit | 3070543349712715b6f9337391b1eb592e7524f4 (patch) | |
tree | a8a7a82307d418a98432f8cfd37e136a29f5046c /target | |
parent | 6dbebd5545d2563ee74ec049983a7bf65f05d17f (diff) |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/riscv/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/riscv/translate.c b/target/riscv/translate.c index ec2988b4f6..66a80ca772 100644 --- a/target/riscv/translate.c +++ b/target/riscv/translate.c @@ -548,7 +548,7 @@ static void gen_jalr(CPURISCVState *env, DisasContext *ctx, uint32_t opc, if (rd != 0) { 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) { gen_set_label(misaligned); |