Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target/sparc: Use tcg_gen_lookup_and_goto_ptr in gen_goto_tb
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230628071202.230991-2-richard.henderson@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
  • Loading branch information
rth7680 authored and mcayland committed Jun 28, 2023
1 parent ac5e8c1 commit f67ccb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/sparc/translate.c
Expand Up @@ -318,10 +318,10 @@ static void gen_goto_tb(DisasContext *s, int tb_num,
tcg_gen_movi_tl(cpu_npc, npc);
tcg_gen_exit_tb(s->base.tb, tb_num);
} else {
/* jump to another page: currently not optimized */
/* jump to another page: we can use an indirect jump */
tcg_gen_movi_tl(cpu_pc, pc);
tcg_gen_movi_tl(cpu_npc, npc);
tcg_gen_exit_tb(NULL, 0);
tcg_gen_lookup_and_goto_ptr();
}
}

Expand Down

0 comments on commit f67ccb2

Please sign in to comment.