[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 21/41] target/mips: Fix missing else in gen_goto_tb
From: |
Richard Henderson |
Subject: |
[PATCH 21/41] target/mips: Fix missing else in gen_goto_tb |
Date: |
Sat, 10 Jul 2021 08:31:23 -0700 |
Do not emit dead code for the singlestep_enabled case,
after having exited the TB with a debug exception.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/mips/tcg/translate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/mips/tcg/translate.c b/target/mips/tcg/translate.c
index 5cd3e7d8dd..47c967acbf 100644
--- a/target/mips/tcg/translate.c
+++ b/target/mips/tcg/translate.c
@@ -4958,8 +4958,9 @@ static void gen_goto_tb(DisasContext *ctx, int n,
target_ulong dest)
if (ctx->base.singlestep_enabled) {
save_cpu_state(ctx, 0);
gen_helper_raise_exception_debug(cpu_env);
+ } else {
+ tcg_gen_lookup_and_goto_ptr();
}
- tcg_gen_lookup_and_goto_ptr();
}
}
--
2.25.1
- [PATCH 10/41] target/arm: Use DISAS_TOO_MANY for ISB and SB, (continued)
- [PATCH 10/41] target/arm: Use DISAS_TOO_MANY for ISB and SB, Richard Henderson, 2021/07/10
- [PATCH 11/41] target/arm: Use translator_use_goto_tb for aarch64, Richard Henderson, 2021/07/10
- [PATCH 12/41] target/arm: Use translator_use_goto_tb for aarch32, Richard Henderson, 2021/07/10
- [PATCH 14/41] target/avr: Mark some helpers noreturn, Richard Henderson, 2021/07/10
- [PATCH 18/41] target/m68k: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 13/41] target/avr: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 17/41] target/i386: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 15/41] target/cris: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 16/41] target/hppa: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 20/41] target/mips: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 21/41] target/mips: Fix missing else in gen_goto_tb,
Richard Henderson <=
- [PATCH 19/41] target/microblaze: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 22/41] target/nios2: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 23/41] target/openrisc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 24/41] target/ppc: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 27/41] target/s390x: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 25/41] target/riscv: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 29/41] target/sh4: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 26/41] target/rx: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 31/41] target/tricore: Use translator_use_goto_tb, Richard Henderson, 2021/07/10
- [PATCH 33/41] target/xtensa: Use translator_use_goto_tb, Richard Henderson, 2021/07/10