From patchwork Mon May 13 07:46:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 796504 Delivered-To: patch@linaro.org Received: by 2002:a5d:452e:0:b0:34e:ceec:bfcd with SMTP id j14csp1883295wra; Mon, 13 May 2024 00:49:02 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVqQiqHtVS4XmwBkJTDmqmzYqbBs6nXIxaU6mrIZHNLolu9ILeu/W3Ui2FYiXWztnQc8SBZTtiOVgqxjdNPTB+3 X-Google-Smtp-Source: AGHT+IHpXkx9DT/BnGgvdItwF6HG63WBC37fG/gzlKBxYYmLbXw6rgmZnxR6CB01nbtYXJAbyQ0I X-Received: by 2002:a05:620a:341:b0:792:b70a:2224 with SMTP id af79cd13be357-792c75f4b4emr999376585a.60.1715586542047; Mon, 13 May 2024 00:49:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715586542; cv=none; d=google.com; s=arc-20160816; b=kFkIIIk/l2ja0AiDyTL+jsiB4TZxfLr1y1fr/QZBepOjRIj38QzZhhoR6vXtvbjQtI TYJ5/lsQIp5CWFRRS/WF47ujOhcecql9PSOwlxauq5gBsCgvDK9CgJEBwKvu4m0z7IV9 gzLDSzUeoZwXCWjrln5ZQ2F8br3zoLQ/tgU4VWlYU1GagHPQopZ9aIK564f6DIEp+w7c iUplKMKmys17et5J+YKz3kRPK3/oST+86Az4qqt3lnAnYQl+PV5iNaQ3i2qFuGANQjRf NoodMannsuviiDvH06XYAJNl7J9i5/ImJzUveakG3op9wYjLB1w9rPJP9SEth+KE23p9 /XGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5zJVPddiwqndhAfsv4bxEk5QwYGlyRAHKsQYLRbwnmM=; fh=f2WZoDMBYjCKWIIOoPI+rQtxlv4fmOm4u+dLdQLqpOk=; b=nRIqsbkCJ1w+2+rR39MBB+ixsTJuyBDF94x51iHMq5bNE/EJpV/xzoenXEsPvMX3AF tjMM7QFoZB42LFdB6t/mOvMPri9sRVu+ciAD9uwa1GDIhjXYCq8VumLzeZZOtI1UMh/z nTpDrn7az4hoocxx6jiTJGfPuF+nej0rpHC5UcQaEHbgsXLxMaWD65hEorA3zrpN3FrX w7vEeErYirrqQ9U55FNX7g1xSZvri3l3DmfcD7sFTnAlaktwQG606j2OkokYF3IK8zso 3awTXMHx++QjJJycz7Iknb6BMcymRfhNVCoWCM45v6qW5VWfyWLRvvdKGdw8hJGiSk7J G/cw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoCip7xl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-792bf33b3a7si966057885a.395.2024.05.13.00.49.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2024 00:49:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OoCip7xl; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6QPH-0002pY-QT; Mon, 13 May 2024 03:47:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6QP9-0002lS-LD for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:27 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s6QP7-0001KG-4i for qemu-devel@nongnu.org; Mon, 13 May 2024 03:47:27 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2e1fa824504so53159741fa.0 for ; Mon, 13 May 2024 00:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715586443; x=1716191243; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5zJVPddiwqndhAfsv4bxEk5QwYGlyRAHKsQYLRbwnmM=; b=OoCip7xlwrYZrjYYUre61Koe9afdh0/69uJcTg0Bfii5PwyjvY9fYjuuoWaPSqDGxR m4vd9X1ol1kXBZHasglYVEqJCoZgWB8VgsarQaJ4Pkn7jRXdq6y5rrsVzvrSfh4y6BcH Zu7VR+4q0mg2JGmKIqunk7OgiWcGk7gvgQxK1Zzk1AWkKNIoQPXQZqDhgSawv306c/G5 Ot3MKaVvYOdxyTbpAyFJL53Wwon26+16mcKhyMhOanG0NA3zONnXeLS4ZGulrhWWgwn7 sRPvbh+BzifB3gh2CJ1VR5BniPnSBYws9z3Ams5lbrovRbNmIIiT3PMPBSrawq1KxVol HuBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715586443; x=1716191243; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5zJVPddiwqndhAfsv4bxEk5QwYGlyRAHKsQYLRbwnmM=; b=tGVRLh2CY74y4zi3OBua5CMHZ8+ruITtXwQhWccMuzKr7Dd6WHVpqaxfsxPsZxgdSn lLuJTWDqLxlE4gVKXB0O2u+Y4kXWXDWme74cnATyw+p0hiaYu+DCUjN6SJwhBW9/e6Si KwZAS+RhuXvuUhT8QJexJLqvDXxSOyhKtnPOr0M/7GX36bxqCMhlzfu2C2jRszLmkpE/ KdXGkImNb1xS4tebspR4dIqU/CgydJeywvTjDcicinyEq3135fP+zKYEQPkpYjafwncC MTO6OuNoDti7XyMYfA0klRUr0PFPn7/augwTOkZCbf98+VmfVuzcqYIzvY/1pekLd3I3 KexA== X-Gm-Message-State: AOJu0YxfG5gRPH/EJB+RkqL4I1yaocRNQGxlYAmRjrLgvjX12Nw/9/CB stOcUm3VARq3jSZySxKYGm3fADPlCMjqmpZHpmqsoOx6p6o0gxtRy0QizZ9rVgQCm+XE9P3jiDt 72dU= X-Received: by 2002:a05:651c:1a21:b0:2e3:3eaa:ac92 with SMTP id 38308e7fff4ca-2e5205e6e08mr68402721fa.53.1715586443604; Mon, 13 May 2024 00:47:23 -0700 (PDT) Received: from stoup.. (12.red-213-97-13.staticip.rima-tde.net. [213.97.13.12]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9318sm148204765e9.30.2024.05.13.00.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:47:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: deller@gmx.de Subject: [PATCH v2 06/45] target/hppa: Use CF_BP_PAGE instead of cpu_breakpoint_test Date: Mon, 13 May 2024 09:46:38 +0200 Message-Id: <20240513074717.130949-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513074717.130949-1-richard.henderson@linaro.org> References: <20240513074717.130949-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=richard.henderson@linaro.org; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The generic tcg driver will have already checked for breakpoints. Signed-off-by: Richard Henderson Reviewed-by: Helge Deller --- target/hppa/translate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/hppa/translate.c b/target/hppa/translate.c index 140dfb747a..d272be0e6e 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,