From nobody Wed Apr 16 13:42:32 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1666716596; cv=none; d=zohomail.com; s=zohoarc; b=l6xuG/EzXwmo2By28dwbo1KZgAd5IXJ0GQnmfuKjMQLokIg5EXndJigyYwj/+8X05ytaP8/4iGx2lOc8MFxAR9/EIwsxzkMpi+Q8XSy8HdQGY3AmZ2et7plK5nZU0yJ5QF/t/Yu9wXzItaQiCah9fdLh31xXWxA1Og1cD82cG5k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666716596; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ppG/EzB7l5bDKZ2NX6MJRQhjOOzL6dQ8KubnemNVd/Y=; b=GOxrihbntcjxFb2YsmZLscrWpCIrxYs69+lk+xPsnjq5HFmAHrRfaSzCTkfIjlMlOfMpb7jZaDimBJrA98Fe+y2JxQljhVsitwHCzLvFIGl4QqCo5jva6190uDw4ppqVvjbOe0UhEkzP6lYwmNNcfkam/Se2QfJ4roGiAK1kNgg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1666716596213374.3331446621181; Tue, 25 Oct 2022 09:49:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onMyP-0005cT-D4; Tue, 25 Oct 2022 12:40:17 -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 1onMyI-0005Og-MH for qemu-devel@nongnu.org; Tue, 25 Oct 2022 12:40:13 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onMyE-0001OR-1H for qemu-devel@nongnu.org; Tue, 25 Oct 2022 12:40:10 -0400 Received: by mail-wr1-x431.google.com with SMTP id z14so8565379wrn.7 for ; Tue, 25 Oct 2022 09:40:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id z12-20020a05600c220c00b003cd9c26a0basm2971084wml.40.2022.10.25.09.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 09:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ppG/EzB7l5bDKZ2NX6MJRQhjOOzL6dQ8KubnemNVd/Y=; b=DK8N6ZXSKIcjtIvkiENAftifoYD5iiqrKJDoSrY2E68GMr9Dh42isgEbeUYilx3Fmq RF+u5WN07I3NlTjkvsfG3zYfSi0+O06jQ6pJWquo6MyqzZ2IHhbI4C6p6rl3JATllKJ+ faA8sQ8iU0SCM95aJVHqfSBzdlvIA96SU84dnBoC6p54hu/5g5Wi9toDxM7CeTgvWk8s pZeKpocoFWFDolWHVB5u5pOBy8Fb+Tbzp09nc9tGSZvq6iuGcPpIFgGPMzzCQVPGsDRC wDqAHfvdfKtjEDzRBQavTcb4BITnxjjLhNhqA/DinAa8BvBlMkaQDiGc+rx1P+B7sbjP lAmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ppG/EzB7l5bDKZ2NX6MJRQhjOOzL6dQ8KubnemNVd/Y=; b=NO1Oi8AC1Ir5zxY0r6eDTlUYo8BSF1+EG/oXWpCQcV+X8bKeERzqKlYT1OOwcE/4xf M9rIKgTgm7Fivwc5J3YYSqUmWlarh5BgOF02VWqrVTn+zNALR1bAQdRU6smFphxrQ8A9 19OSlktShaAoUSInBc5LWNA3Bz1Eyi6+4kYD6LDFZVUtX0kyKP1f2nzkJ1HWBF34omKQ B9q3Z0xxinz5ZyErL88pWWRdcMyUqXdeBAv5dPUsjnE5EFMQnwJL5DAHu3hwfXLS4BB1 pv2Dr7mF0jpgnXrk5NGxpR04iELKUfZsjEpzEnrGsk8Ufcjd7RxhraUEh9F8cQwR0L7w 10Ig== X-Gm-Message-State: ACrzQf2RzP9cs9gvJAj5EQeahXPVJIzQ/FZ73/FiWU9wSdfPDIWFrcbe nk4apsvaB5HDwyzhIURfvnmiQ8KfYb6X5A== X-Google-Smtp-Source: AMsMyM6MyXU/0c5AT8FzV6rkajX2okhs4M4JCF5ZI+LG0dMA2c9IU55pQ98LuE3b/rz7ySyhWT42Mw== X-Received: by 2002:a5d:61c9:0:b0:236:781a:8d7e with SMTP id q9-20020a5d61c9000000b00236781a8d7emr6194561wrv.576.1666716005317; Tue, 25 Oct 2022 09:40:05 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 09/30] target/arm: Add isar predicates for FEAT_HAFDBS Date: Tue, 25 Oct 2022 17:39:31 +0100 Message-Id: <20221025163952.4131046-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221025163952.4131046-1-peter.maydell@linaro.org> References: <20221025163952.4131046-1-peter.maydell@linaro.org> MIME-Version: 1.0 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=2a00:1450:4864:20::431; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x431.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1666716598367100007 Content-Type: text/plain; charset="utf-8" From: Richard Henderson The MMFR1 field may indicate support for hardware update of access flag alone, or access flag and dirty bit. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-id: 20221024051851.3074715-4-richard.henderson@linaro.org Signed-off-by: Peter Maydell --- target/arm/cpu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index f8c59858063..592b4ffbad4 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -4144,6 +4144,16 @@ static inline bool isar_feature_aa64_e0pd(const ARMI= SARegisters *id) return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR2, E0PD) !=3D 0; } =20 +static inline bool isar_feature_aa64_hafs(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, HAFDBS) !=3D 0; +} + +static inline bool isar_feature_aa64_hdbs(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, HAFDBS) >=3D 2; +} + static inline bool isar_feature_aa64_tts2uxn(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, XNX) !=3D 0; --=20 2.25.1