[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
- [PATCH 0/9] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/20
- [PATCH 1/9] target/cris: Add DisasContextBase to DisasContext, Richard Henderson, 2021/06/20
- [PATCH 2/9] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN, Richard Henderson, 2021/06/20
- [PATCH 5/9] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/20
- [PATCH 6/9] target/cris: Mark helper_raise_exception noreturn, Richard Henderson, 2021/06/20
- [PATCH 4/9] target/cris: Remove DISAS_SWI, Richard Henderson, 2021/06/20
- [PATCH 7/9] target/cris: Mark static arrays const, Richard Henderson, 2021/06/20
- [PATCH 9/9] target/cris: Use tcg_gen_lookup_and_goto_ptr,
Richard Henderson <=
- [PATCH 3/9] target/cris: Mark exceptions as DISAS_NORETURN, Richard Henderson, 2021/06/20
- [PATCH 8/9] target/cris: Use movcond for t_gen_cc_jmp, Richard Henderson, 2021/06/20