aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-06-20 17:00:46 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-07-09 09:42:28 -0700
commit3806471563f9f1b568a32fdece189a1cecb5ca01 (patch)
tree133566d002e0035c460a54dbc933be32bf85ee14 /target
parentd6b6f26170052452473fd8e674a29e337625dcdd (diff)
downloadqemu-3806471563f9f1b568a32fdece189a1cecb5ca01.zip
qemu-3806471563f9f1b568a32fdece189a1cecb5ca01.tar.gz
qemu-3806471563f9f1b568a32fdece189a1cecb5ca01.tar.bz2
target/tricore: Use tcg_gen_lookup_and_goto_ptr
The non-single-step case of gen_goto_tb may use tcg_gen_lookup_and_goto_ptr to indirectly chain. Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target')
-rw-r--r--target/tricore/translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/tricore/translate.c b/target/tricore/translate.c
index 09465ea..8650207 100644
--- a/target/tricore/translate.c
+++ b/target/tricore/translate.c
@@ -3243,8 +3243,9 @@ static void gen_goto_tb(DisasContext *ctx, int n, target_ulong dest)
gen_save_pc(dest);
if (ctx->base.singlestep_enabled) {
generate_qemu_excp(ctx, EXCP_DEBUG);
+ } else {
+ tcg_gen_lookup_and_goto_ptr();
}
- tcg_gen_exit_tb(NULL, 0);
}
}