target/cris: Replace DISAS_TB_JUMP with DISAS_NORETURN
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. Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
6abfa161aa
commit
a67f11b1d9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user