From patchwork Sat Apr 9 00:07:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 559174 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp756894map; Fri, 8 Apr 2022 17:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG5eRSquOhgRw3tje++68MT0CeHk+P+OCPSiKD2f2VeXq0/NZ2Eb3NyD0AvBG6/r4aDVex X-Received: by 2002:a0c:8e0b:0:b0:435:1779:7b22 with SMTP id v11-20020a0c8e0b000000b0043517797b22mr18601408qvb.63.1649462955399; Fri, 08 Apr 2022 17:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649462955; cv=none; d=google.com; s=arc-20160816; b=0aUKYfUUP3C08zOGqNC8+eGzI4DmRh+4EZkWeUeK1TIE8TLXqFdSHEp/XRgXqVCWVu 0cwJQ0wIRYwFj+U6SzktqyyjN+3wt59ap8Rp2+r2crO/BCS6kcCWLbBMsWBjZ0MxvKgu TVNLRnUJt+cHizaVmnhs2EHVOYFYjSJjGd0jVs9mWnS/s/S1761kkmBWVw62Gx2ebCgb 3DhPJf65/w9gsMynKNnfa+jC6y0Zxwb6a1OhUXAajcSByu+NdrqwXV7C/2SITFPbk7M9 Q9lGvIwJDhOk2Fq09WH39b5icnoOdEm5zgeMBJIvY1QYuMupOf6mVuPRouiFEXkLv0Mk A8iQ== 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=bsIZuuOFl21oF1yTY/+qyLzpHVhgT0vup4ac2EKKMU0=; b=ykogbc4SZ+7HigWn/2cIJw6XFpvlJLOfTuPgMSXWJc1yCIdgkhGnIF6lrrm/DLFDc7 fDfbllJMpee2zwLtMcjqURBozu71AGAmy04QLUWmmALOHxtM0GNjyB1cTFnR6eY2SG9n Zc2t2ZIFTFZFI1JL5pKRSjLZPLcBuP5dIC6d5k3X9mx99Fuv7OF067iLbVU4AyIQK7aS 1ZOkI4U3GG9fxZMK1jVbfm/jtp7PLjf7B2i9gxbJHDUeyVkS3umQZ5ikI2zhWn+VHMf7 j/6g9HcQAJmXcLPJ1ukbjkVU7X7y4/d+V2ofHSxIsE7NRYzlsFHaoXyC25y5fVksdmor 6v+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f3tpx/2Q"; 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 a21-20020ac84d95000000b002e1fbf3bf49si1265536qtw.314.2022.04.08.17.09.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Apr 2022 17:09:15 -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="f3tpx/2Q"; 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]:58484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncyfC-0000a8-V3 for patch@linaro.org; Fri, 08 Apr 2022 20:09:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncydo-00088i-BV for qemu-devel@nongnu.org; Fri, 08 Apr 2022 20:07:48 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:40616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ncydl-0003Pd-V4 for qemu-devel@nongnu.org; Fri, 08 Apr 2022 20:07:47 -0400 Received: by mail-pf1-x432.google.com with SMTP id a42so3240622pfx.7 for ; Fri, 08 Apr 2022 17:07:45 -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=bsIZuuOFl21oF1yTY/+qyLzpHVhgT0vup4ac2EKKMU0=; b=f3tpx/2QeX/GaEjY0MjWWZiXHhYBkui0HWp6Z0QGU/Dev2qUABzf8PSIRbILQrECN6 gY3+929yIppa3fMB/14cm7PxWput/4WKAkpU4BXgthkxe/KkaVPmPAB0/Ujq6TMC42Pj pkT/7YWnQdarana54zRMB/Yy36CD2jlWVSrY8+pfcOf4f/Gof6X47tZnAbYqa7/f/aBo LMkQGwM1avrmBUeomQS3wM/QL6ZH6fLiEjXG3rZrqM5GQe8MAvxZNN99eWpzDPLde1np ch3TXSPONzjxm09D0ndyVu+0bh++6vzudopjjB8gzYeSEzFeqhA0d+zfEl5N5COWMGx4 fBfQ== 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=bsIZuuOFl21oF1yTY/+qyLzpHVhgT0vup4ac2EKKMU0=; b=GjC8J8JASXLLcY5DtIgLNp5mUE5Yb6Y82qIczHBZYFaddeqroeCq8KsQNfsimxQVwS X8ScuWm86m6qHJsjZKav+O27JBtVZmBCFkCRhIP4q9W/JM2edT8fHju+hgZ3FphEYaxd ZzQrnzGWIdQ0xvfnscQyXwc0awSqG6LgJUy/Ff7UgcxofmGSK2uzyAXXZzJn8rhtshzm IBy1f3hbBYAJ0J4jSsntFudh8/0nKtlyFcVQiqGKNUCYIBCN5hdk+5T2h5Ymz+8rgh4L 8P0cZIUdb5Ba9F5lsiWv81lM9E3GF/KI91177VLgL0IlMn7rIF8ok0eo8klkTfDJfttR OKUQ== X-Gm-Message-State: AOAM532gw4oXipTlCCuyO5XyQvgzmryXmzHtuYILZmZdPBMqfqNrCZ8D mnlZCeiYCquWz1Rtx9l6UQZ3GIpn8CIgpg== X-Received: by 2002:a63:2f46:0:b0:382:230f:b155 with SMTP id v67-20020a632f46000000b00382230fb155mr18180747pgv.64.1649462864342; Fri, 08 Apr 2022 17:07:44 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id t69-20020a637848000000b0039831d6dc23sm22073961pgc.94.2022.04.08.17.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 17:07:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 01/16] target/arm: Add isar predicates for FEAT_Debugv8p2 Date: Fri, 8 Apr 2022 17:07:27 -0700 Message-Id: <20220409000742.293691-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220409000742.293691-1-richard.henderson@linaro.org> References: <20220409000742.293691-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x432.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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 23879de5fa..9c456ff23a 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -4026,6 +4026,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. */ @@ -4332,6 +4337,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; @@ -4415,6 +4425,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. */