summaryrefslogtreecommitdiffstats
path: root/target/microblaze
diff options
context:
space:
mode:
authorRichard Henderson2021-07-19 18:16:42 +0200
committerRichard Henderson2021-10-16 01:39:14 +0200
commitfbafb3a4d2fc90efdba05ec0d1f2ad7c4f68e9a5 (patch)
tree6b5ca292499b91f58a18bda3917251a7071a1651 /target/microblaze
parenttarget/m68k: Drop checks for singlestep_enabled (diff)
downloadqemu-fbafb3a4d2fc90efdba05ec0d1f2ad7c4f68e9a5.tar.gz
qemu-fbafb3a4d2fc90efdba05ec0d1f2ad7c4f68e9a5.tar.xz
qemu-fbafb3a4d2fc90efdba05ec0d1f2ad7c4f68e9a5.zip
target/microblaze: Check CF_NO_GOTO_TB for DISAS_JUMP
We were using singlestep_enabled as a proxy for whether translator_use_goto_tb would always return false. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/microblaze')
-rw-r--r--target/microblaze/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c
index a14ffed784..7e465b629a 100644
--- a/target/microblaze/translate.c
+++ b/target/microblaze/translate.c
@@ -1779,7 +1779,7 @@ static void mb_tr_tb_stop(DisasContextBase *dcb, CPUState *cs)
break;
case DISAS_JUMP:
- if (dc->jmp_dest != -1 && !cs->singlestep_enabled) {
+ if (dc->jmp_dest != -1 && !(tb_cflags(dc->base.tb) & CF_NO_GOTO_TB)) {
/* Direct jump. */
tcg_gen_discard_i32(cpu_btarget);
@@ -1804,7 +1804,7 @@ static void mb_tr_tb_stop(DisasContextBase *dcb, CPUState *cs)
return;
}
- /* Indirect jump (or direct jump w/ singlestep) */
+ /* Indirect jump (or direct jump w/ goto_tb disabled) */
tcg_gen_mov_i32(cpu_pc, cpu_btarget);
tcg_gen_discard_i32(cpu_btarget);