From patchwork Sun Apr 17 17:44:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 562861 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp1873271map; Sun, 17 Apr 2022 11:33:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFfvoQZjAbZrp8Bvx5bxd/uOrdrEGvTDdQ5Ts9BN+gv+ZZNQxujmKB0nC2RnxQlbIsuWVy X-Received: by 2002:a37:90e:0:b0:69e:a0f0:215c with SMTP id 14-20020a37090e000000b0069ea0f0215cmr575425qkj.139.1650220417603; Sun, 17 Apr 2022 11:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650220417; cv=none; d=google.com; s=arc-20160816; b=NdWh303HJlJWkiH37/Fr5w/lVYmBWHWJ+6/OYLT3xe/61UDf+ZofwUdjIbX80Rovfe JUn8axJU2lsPY7olL/uQEpb5Mnk01A7BiK2ZiQFCGdzsooVgDp90Am8aBPQJb4coN9sP xS+9OhoLY6E1s3WgeNHuHvvuPy9o5OzPGLtaKhLDSCg5VxjlV1tJljvXDyOp2q8NsPSF UnPxJFUCtpqUrpIXU8UxnoOB9DIc1MdLBf89tmg+HY2G1Z6etm58NLme25rC+P79CVcw 9I+zKu5OJE8z6ygpBy7zq++DG/WEC7+tiT2CweMbMjeVihGtAKOA+S2e65WEQ6tVwBoX SXMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=iHPYNe1DqPRag9orJ+BvIVcsXKhWsdyBbed7JfVXS9Y=; b=stUOInnodzQsxkjROpQpIZv6G9lN/bfvp4vE5a9XAT28HftPCf9Rkc8cJR5ZXqNaLH j9fA09BwVngaCI6xSA8ByIzxf6c+WuK/ZoEj6Wyt+BUdjcEOrvNYFZQnpvpBw63Wp/JQ OcxdvPql6c766SEbgTwcRRpV1KBoO21m0I62KsbA3jOKya3kRe08lUe4yHK4ocyzaMbf IaWMeSOuqcGM1jbqkXwr2O5gtHXvfYMLLD8fiu6a1kzAlvGin4UMq4w06qnpff9E9A1p 9jOKsAodo9Pef7FE9sf791/wwRQcQmvzTikX7Q40lu+GOB9e4NOy6dnRvAuDqhoeRsGL 2Sww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=v3ifIdMX; 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=fail (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 w9-20020a05620a444900b006998fbf0de1si2605936qkp.537.2022.04.17.11.33.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Apr 2022 11:33:37 -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=fail header.i=@linaro.org header.s=google header.b=v3ifIdMX; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng9iL-0003Tp-6c for patch@linaro.org; Sun, 17 Apr 2022 14:33:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng8xO-0001YP-VP for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:45:07 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:33595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ng8xL-0003TI-OZ for qemu-devel@nongnu.org; Sun, 17 Apr 2022 13:45:06 -0400 Received: by mail-pg1-x52b.google.com with SMTP id k14so14987299pga.0 for ; Sun, 17 Apr 2022 10:45:03 -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=iHPYNe1DqPRag9orJ+BvIVcsXKhWsdyBbed7JfVXS9Y=; b=v3ifIdMXFqxZJbts6cFfjOHvY7Q27JcEX/6KmdKmxur1sReuVOSq0IKVlQWM1hbcJT LMAKoVVOMy5ONsRHL9GdfIEc/TnSQtgK1exhU5jXL6LuM9ApH2Kw4N92Jc0JIR1twpIF mml99lA89i5+vBeg6lDV4cp4JCzyNZpw25UaoGmVll/KByXyn98BUMGCFPyXDOsvsCgH GLqPu5Czsws/mQB0K4Dcmx+0i7oVNt6tGImbmJZFpwRvOpdx2/US54AtFvpJNZMO9Ocw vpy1Sxt8blAv+kDMIRM1chNkPGWKKK251eIvrJ1VcoVGOZ7cn6tsQCpqnx3Ng15059Mo QoMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iHPYNe1DqPRag9orJ+BvIVcsXKhWsdyBbed7JfVXS9Y=; b=Mu7xleGfUCkHdxK54wwOnamMvY03KlzZxtFzqkxEXpEg7LDdz12a7uWuG7VlNGB8V2 P+PcA0L7+WltNs/Hit6ABwEeD4jOLrTpXt+36I9k/CipisZEW2CP7JTboLH5f1Nd6Tm3 yofrhbh94C1WzH6rLrwAnKP6kIdSCSk3/URaHGlTA91lvfDOruaL7zvZrxzJnvaIVHtW 6PcqN+8/fScuHssIdFQGBRrGuEPWqP3X2tVKEgzDfN8ktPuMkLGnh5HJC8g09EYZtxE8 aPLbIQ0UoShDQ5opDCTrQZGz8AP6EmdfXUGKu617LKXkq4xbldwWfIjjeGFq6CQscoSX YvhQ== X-Gm-Message-State: AOAM531nPqh9Jb/xBF4AuhOMyt/FS2GRb6HgsKSpzQJ49gGjDsVh2l5m 7HmSMKgEeT+vYG4C775BGPDdgXaJI4D99w== X-Received: by 2002:a63:602:0:b0:3a1:ec9d:1533 with SMTP id 2-20020a630602000000b003a1ec9d1533mr7035496pgg.470.1650217502402; Sun, 17 Apr 2022 10:45:02 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id i2-20020a17090a138200b001cb6512b579sm10372119pja.44.2022.04.17.10.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Apr 2022 10:45:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 38/60] target/arm: Add isar predicates for FEAT_Debugv8p2 Date: Sun, 17 Apr 2022 10:44:04 -0700 Message-Id: <20220417174426.711829-39-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220417174426.711829-1-richard.henderson@linaro.org> References: <20220417174426.711829-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.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, T_SCC_BODY_TEXT_LINE=-0.01 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: , Cc: Peter Maydell , qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/cpu.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 76c0dd37cd..20bf70545e 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -3703,6 +3703,11 @@ static inline bool isar_feature_aa32_ssbs(const ARMISARegisters *id) return FIELD_EX32(id->id_pfr2, ID_PFR2, SSBS) != 0; } +static inline bool isar_feature_aa32_debugv8p2(const ARMISARegisters *id) +{ + return FIELD_EX32(id->id_dfr0, ID_DFR0, COPDBG) >= 8; +} + /* * 64-bit feature tests via id registers. */ @@ -4009,6 +4014,11 @@ static inline bool isar_feature_aa64_ssbs(const ARMISARegisters *id) return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, SSBS) != 0; } +static inline bool isar_feature_aa64_debugv8p2(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64dfr0, ID_AA64DFR0, DEBUGVER) >= 8; +} + static inline bool isar_feature_aa64_sve2(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64zfr0, ID_AA64ZFR0, SVEVER) != 0; @@ -4092,6 +4102,11 @@ static inline bool isar_feature_any_tts2uxn(const ARMISARegisters *id) return isar_feature_aa64_tts2uxn(id) || isar_feature_aa32_tts2uxn(id); } +static inline bool isar_feature_any_debugv8p2(const ARMISARegisters *id) +{ + return isar_feature_aa64_debugv8p2(id) || isar_feature_aa32_debugv8p2(id); +} + /* * Forward to the above feature tests given an ARMCPU pointer. */