[PATCH 9/9] target/cris: Use tcg_gen_lookup_and_goto_ptr

Richard Henderson posted 9 patches 4 years, 7 months ago
Maintainers: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
There is a newer version of this series
[PATCH 9/9] target/cris: Use tcg_gen_lookup_and_goto_ptr
Posted by Richard Henderson 4 years, 7 months ago
Indirect jumps can use this to avoid returning to the main loop.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 target/cris/translate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/cris/translate.c b/target/cris/translate.c
index e4cbc35ebd..8a8d62f11b 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -3330,6 +3330,9 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu)
             gen_goto_tb(dc, 1, npc);
             break;
         case DISAS_JUMP:
+            /* indirect chain to the next TB */
+            tcg_gen_lookup_and_goto_ptr();
+            break;
         case DISAS_UPDATE:
             /* indicate that the hash table must be used to find the next TB */
             tcg_gen_exit_tb(NULL, 0);
-- 
2.25.1