qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Richard Henderson
Subject: [PATCH 9/9] target/cris: Use tcg_gen_lookup_and_goto_ptr
Date: Sat, 19 Jun 2021 21:21:41 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]