]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/hppa: Use CF_BP_PAGE instead of cpu_breakpoint_test
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 22 Mar 2024 02:59:40 +0000 (16:59 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 15 May 2024 07:13:01 +0000 (09:13 +0200)
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>
target/hppa/translate.c

index 140dfb747a42305dec0ba017e2ba90deb161d32e..d272be0e6e3cdc5e4fded93693c30aa544003cba 100644 (file)
@@ -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,