[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 03/15] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN
From: |
Richard Henderson |
Subject: |
[PATCH v3 03/15] target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN |
Date: |
Tue, 22 Jun 2021 08:48:08 -0700 |
The only semantic of DISAS_TB_JUMP is that we've done goto_tb,
which is the same as DISAS_NORETURN -- we've exited the tb.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/cris/translate.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/target/cris/translate.c b/target/cris/translate.c
index 8c1bad9564..e086ff9131 100644
--- a/target/cris/translate.c
+++ b/target/cris/translate.c
@@ -55,7 +55,6 @@
/* is_jmp field values */
#define DISAS_JUMP DISAS_TARGET_0 /* only pc was modified dynamically */
#define DISAS_UPDATE DISAS_TARGET_1 /* cpu state was modified dynamically */
-#define DISAS_TB_JUMP DISAS_TARGET_2 /* only pc was modified statically */
/* Used by the decoder. */
#define EXTRACT_FIELD(src, start, end) \
@@ -3242,12 +3241,12 @@ void gen_intermediate_code(CPUState *cs,
TranslationBlock *tb, int max_insns)
gen_goto_tb(dc, 1, dc->jmp_pc);
gen_set_label(l1);
gen_goto_tb(dc, 0, dc->pc);
- dc->base.is_jmp = DISAS_TB_JUMP;
+ dc->base.is_jmp = DISAS_NORETURN;
dc->jmp = JMP_NOJMP;
} else if (dc->jmp == JMP_DIRECT) {
cris_evaluate_flags(dc);
gen_goto_tb(dc, 0, dc->jmp_pc);
- dc->base.is_jmp = DISAS_TB_JUMP;
+ dc->base.is_jmp = DISAS_NORETURN;
dc->jmp = JMP_NOJMP;
} else {
TCGv c = tcg_const_tl(dc->pc);
@@ -3309,7 +3308,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock
*tb, int max_insns)
to find the next TB */
tcg_gen_exit_tb(NULL, 0);
break;
- case DISAS_TB_JUMP:
+ case DISAS_NORETURN:
/* nothing more to generate */
break;
}
--
2.25.1
- [PATCH v3 07/15] target/cris: Mark helper_raise_exception noreturn, (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 <=
- [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, 2021/06/22