From nobody Tue Feb 10 12:59:45 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1626811450856597.9357445345863; Tue, 20 Jul 2021 13:04:10 -0700 (PDT) Received: from localhost ([::1]:37394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5vyL-000583-Nc for importer@patchew.org; Tue, 20 Jul 2021 16:04:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5vpQ-0007Er-7b for qemu-devel@nongnu.org; Tue, 20 Jul 2021 15:54:57 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:43753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5vpO-00084S-Cd for qemu-devel@nongnu.org; Tue, 20 Jul 2021 15:54:55 -0400 Received: by mail-pj1-x102f.google.com with SMTP id x13-20020a17090a46cdb0290175cf22899cso261465pjg.2 for ; Tue, 20 Jul 2021 12:54:54 -0700 (PDT) Received: from localhost.localdomain (204-210-126-223.res.spectrum.com. [204.210.126.223]) by smtp.gmail.com with ESMTPSA id j25sm15422179pfh.77.2021.07.20.12.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 12:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5o3EFC0L+7Y5ve+aUtFOWA7OByelfTkc7/2t+/SWZ0s=; b=UzLF8E/ns0aR317t3hwcURMkOanbYuSfmGoiu90EWOCIbRvj6CnJc9lH6QtHJwP863 isFv+sn18otKxpQwD51o9AAKUFzProvqe5BAX8xXXtPv6tgROvs3mAT4b9o5/hUu/Di6 sHG1bytKucdM2kzuvgGPwytUVVRGrsLBDszB3S2Snbqw+GW9la0VzCbfXONCRTsOW0Ih cRBgUvHVKbMSusHZxXPIw0bY9HdRLDzULNFE7yP3LKlT0uZhyI3Ub8F6R9x5s8pdSi8O 9LZMCyPU1Jb1C03LkP5CVxcUzUtmj9EfPfghZ2p+zXxCbT7EakfqhTNLrv2IhncrM97w M0CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5o3EFC0L+7Y5ve+aUtFOWA7OByelfTkc7/2t+/SWZ0s=; b=bfHn5WK+LznNXlmNSJfYxgmupPuOHjqXrbMDHm6LSUuPq5GGt4BjeAe91BR/Xd178F izMQ9UE5zVKh93DVWrq68NHVUF3foHEsa3UTOvN1DXzox1RKifZ9fOJQR8xsVBT/g65h rBkU54j5HgaFGRCI4MMVoZrkkWm46brl6ng/uTFlzUdjP/Fzczt/7WU3iL3ciwJ8yZYv JQpTAguQHbE+o5fM7C8ah+2JrcvrXg1GrRWiDzmY5QOn7jjwH11QmcIq9afAkTABF+zG DzwHlx7sbKWYJvYrHS92IH0vznHFXRQ8wb8Jta9mxdwIQK+8cKiwiJejLX7WVRYMhsYq 2u/g== X-Gm-Message-State: AOAM531OUuLQ7R9xFqw14sRhPmdkuXIiolPdkoF4xvIfLS2N2L1fRykr bYa1NNjr3KuqwO48QGTxIo3GI6UkYy78Cg== X-Google-Smtp-Source: ABdhPJxvKqHDiemHu0DuyK4Tyh+OndL7FLd434woHpYPEKl7yBrsmO+Be8GaEmvDVUs2OwLyZeM88g== X-Received: by 2002:a17:902:bc82:b029:12b:a074:1fae with SMTP id bb2-20020a170902bc82b029012ba0741faemr2070744plb.29.1626810893183; Tue, 20 Jul 2021 12:54:53 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH for-6.1 v6 08/17] hw/core: Introduce TCGCPUOps.debug_check_breakpoint Date: Tue, 20 Jul 2021 09:54:30 -1000 Message-Id: <20210720195439.626594-9-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210720195439.626594-1-richard.henderson@linaro.org> References: <20210720195439.626594-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, mark.cave-ayland@ilande.co.uk, alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1626811452900100001 New hook to return true when an architectural breakpoint is to be recognized and false when it should be suppressed. First use must wait until other pieces are in place. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Reviewed-by: Alex Benn=C3=A9e --- include/hw/core/tcg-cpu-ops.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/hw/core/tcg-cpu-ops.h b/include/hw/core/tcg-cpu-ops.h index 72d791438c..eab27d0c03 100644 --- a/include/hw/core/tcg-cpu-ops.h +++ b/include/hw/core/tcg-cpu-ops.h @@ -88,6 +88,12 @@ struct TCGCPUOps { */ bool (*debug_check_watchpoint)(CPUState *cpu, CPUWatchpoint *wp); =20 + /** + * @debug_check_breakpoint: return true if the architectural + * breakpoint whose PC has matched should really fire. + */ + bool (*debug_check_breakpoint)(CPUState *cpu); + /** * @io_recompile_replay_branch: Callback for cpu_io_recompile. * --=20 2.25.1