[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 12/15] target/cris: Use tcg_gen_lookup_and_goto_ptr
From: |
Richard Henderson |
Subject: |
[PATCH v3 12/15] target/cris: Use tcg_gen_lookup_and_goto_ptr |
Date: |
Tue, 22 Jun 2021 08:48:17 -0700 |
We can use this in gen_goto_tb and for DISAS_JUMP
to indirectly chain to the next TB.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/cris/translate.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index f58f6f2e5e..ea6efe19d9 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -546,7 +546,7 @@ static void gen_goto_tb(DisasContext *dc, int n,
target_ulong dest)
tcg_gen_exit_tb(dc->base.tb, n);
} else {
tcg_gen_movi_tl(env_pc, dest);
- tcg_gen_exit_tb(NULL, 0);
+ tcg_gen_lookup_and_goto_ptr();
}
}
@@ -3352,6 +3352,8 @@ static void cris_tr_tb_stop(DisasContextBase *dcbase,
CPUState *cpu)
tcg_gen_movi_tl(env_pc, npc);
/* fall through */
case DISAS_JUMP:
+ tcg_gen_lookup_and_goto_ptr();
+ break;
case DISAS_UPDATE:
/* Indicate that interupts must be re-evaluated before the next TB. */
tcg_gen_exit_tb(NULL, 0);
--
2.25.1
- Re: [PATCH v3 11/15] target/cris: Add DISAS_DBRANCH, (continued)
[PATCH v3 14/15] target/cris: Remove dc->flagx_known, Richard Henderson, 2021/06/22
[PATCH v3 13/15] target/cris: Improve JMP_INDIRECT, Richard Henderson, 2021/06/22
[PATCH v3 02/15] target/cris: Remove DISAS_SWI, Richard Henderson, 2021/06/22
[PATCH v3 03/15] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN, Richard Henderson, 2021/06/22
[PATCH v3 06/15] target/cris: Convert to TranslatorOps, Richard Henderson, 2021/06/22
[PATCH v3 09/15] target/cris: Fold unhandled X_FLAG changes into cpustate_changed, Richard Henderson, 2021/06/22
[PATCH v3 08/15] target/cris: Mark static arrays const, Richard Henderson, 2021/06/22
[PATCH v3 15/15] target/cris: Do not exit tb for X_FLAG changes, Richard Henderson, 2021/06/22
[PATCH v3 12/15] target/cris: Use tcg_gen_lookup_and_goto_ptr,
Richard Henderson <=