diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-03-21 16:59:40 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-05-15 09:13:01 +0200 |
commit | f9b11bc2e75de806f189f7a5d1e63ba735ef4207 (patch) | |
tree | 6bb3455c4418251d1b2417f0365f894bf5411518 | |
parent | d582c1faa3dcf6a87736383536b38335796fa214 (diff) | |
download | qemu-f9b11bc2e75de806f189f7a5d1e63ba735ef4207.zip qemu-f9b11bc2e75de806f189f7a5d1e63ba735ef4207.tar.gz qemu-f9b11bc2e75de806f189f7a5d1e63ba735ef4207.tar.bz2 |
target/hppa: Use CF_BP_PAGE instead of cpu_breakpoint_test
The generic tcg driver will have already checked for breakpoints.
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r-- | target/hppa/translate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 140dfb7..d272be0 100644 --- a/target/hppa/translate.c +++ b/target/hppa/translate.c @@ -674,8 +674,9 @@ static bool use_goto_tb(DisasContext *ctx, uint64_t bofs, uint64_t nofs) executing a TB that merely branches to the next TB. */ static bool use_nullify_skip(DisasContext *ctx) { - return (((ctx->iaoq_b ^ ctx->iaoq_f) & TARGET_PAGE_MASK) == 0 - && !cpu_breakpoint_test(ctx->cs, ctx->iaoq_b, BP_ANY)); + return (!(tb_cflags(ctx->base.tb) & CF_BP_PAGE) + && ctx->iaoq_b != -1 + && is_same_page(&ctx->base, ctx->iaoq_b)); } static void gen_goto_tb(DisasContext *ctx, int which, |