From nobody Sat Nov 15 10:37:15 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=1754179169; cv=none; d=zohomail.com; s=zohoarc; b=JdJeLF52ZxWbe5+0LQyB3dWvSzwelIeFEn9XFesrtSQJv1hceN8nwq5Ybz8brQLu/y8sVOD9RIN3VkGNtrdXYgZVK5kWZ7G6GZurqWyeBBRsQt8+yRG5XBIt81XAbPqkiILR2r40blTUO34RbqsZnIFe2pJxzhzus/vXvRmW60c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1754179169; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Aml6O/ihqRQ5/Olxx3E4fWtWtO1GlytBAF8K5CE0V54=; b=AA4aXrYYIahGtu7G3gcEnwrio8k2gCfZAFLHAPiYchwIOvKTbhssO67dhXUsrm/QrRq+24ojr5EU1nz4SzWJ3JxB3jjupD5mrEDXUAO5o5yA5lyAHZR0e9DVdlHr+l/fzbfC17yCskqOHRkY+bGYIK2KytfO9lBp1k4ylT50Jlk= 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 175417916984020.447758369757935; Sat, 2 Aug 2025 16:59:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uiLhn-00006H-CL; Sat, 02 Aug 2025 19:31:59 -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 1uiLgv-0007Dc-LD for qemu-devel@nongnu.org; Sat, 02 Aug 2025 19:31:05 -0400 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uiLgt-0004xq-DM for qemu-devel@nongnu.org; Sat, 02 Aug 2025 19:31:04 -0400 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-30b776f0805so545260fac.3 for ; Sat, 02 Aug 2025 16:31:03 -0700 (PDT) Received: from stoup.. ([172.58.111.133]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-30b8e3c9b32sm71031fac.24.2025.08.02.16.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Aug 2025 16:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1754177462; x=1754782262; 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=Aml6O/ihqRQ5/Olxx3E4fWtWtO1GlytBAF8K5CE0V54=; b=hHAgiJup/4T9U4W5zZuJ1Zl6QBV7g9dBS4VHYvc8TE7Ecl9yNLCXBZeIOCQ+Dn8LML 6A8PvPiywCB9eB5EAnGgWaAHzk1yF1/nc/506Qan4X+p/Aqogo5Hx8QKX+Ixeq6wW4mV VEms/ri2KKSuejiGYPjzIsVQj+TteTusVvUlcaK221jP/4OZD7WvWUx6ko4VFClvCskt /RWUppRWnvWpIUjix90NnbP7agpz/6ou2O/1DNd5Kcc3WYEq1kB0LgZeOu9nzprCfaVS oLvUS+RMReJ9CzFuyXxdPWkTuZ4Y7NOI6S0Sqdkj5xMqRV6JYGkaPTAiothYJdyBOLyf DDyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754177462; x=1754782262; 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=Aml6O/ihqRQ5/Olxx3E4fWtWtO1GlytBAF8K5CE0V54=; b=htLlOQTdstFJ2j7wtdLzdULkFO06jWVzDVi5cAA4B5/DGxuteoskGPmGU0MEXAfj+P /pHycy4vZfT56H1XbvW0mucG9oJ3oqW2b09JBx165naYYTrvhAAaEdUtB78BN93/Xmiw fXAx/UCbH9CfDSexVYrB+n9ifyMryMCXAgl9NvhPd7CZfjEzryrIs8Mk5YOxtsiNly3m LBiCQHyHHQKBMrHIS9xbzIo24OuWq5L0ApIsJgWvK9BU8yQ45leovp5gQ44IPdaCTIIV KGFKPDTw14CAHP9bqdLtRbhNChPY+MfVjKKm/WlrxIJZktV9EWVm0ITB4aSglCPOXpMm 2vQA== X-Gm-Message-State: AOJu0YyyOwMDHlUZYMuO1ZmymgpMQNViS6vQvbFDWu17K9BzguO2t8av e/JL12saDJy4G3T1JGqh+RulKvi3ORoPFgkb+OwUoARIoDSCPrErRJ+6u66wFlNhpnwpNJagBIX lTUX912M= X-Gm-Gg: ASbGncs7hSCfrpEbutXNcrpa4RRRk43/o+18NXiDHp5BaeP8ZB7anFpXDJrntccU84C mHHl6MzvPLf4C7rOe5xW5ZhvVfRI1HsqgqmqOYIfarzGB3X/BlgSY+rlHnx/wcptZ8Rphd0uxSX /8dZCC0ZIvCAloEGK2eOFfqUs1QtZY4SFqiY0QJbRYPUEx31MKoVhS9hEA1qL0DvoTAQUUG7qfk NxXsdepNX9VsNh5T4vIyhRXjat1DStIV2Yr40zA9uHE45s+iQ52X9VgKbvH+L2AKaaaLUPzxzV+ qj6aYgCRF+EMuyA1iHMmwo/yXryxBMj1CyYy+aM9aLRAyw1pChX5ncpKRO42zYsWGEpGnukFJuK ptkHJ2FO6q9A8jDpRj1A6LI7Zpak+qRnrE1vCZ0YOqzuJgmBCwvU2 X-Google-Smtp-Source: AGHT+IHEjCMcvfy7+bS+jsFRopBQ+lrDRgn1osJStQjwas1hmXKdNq7MJ+xSJ0LZP44zwGZi/9PNww== X-Received: by 2002:a05:6871:490:b0:2f6:c9a6:4f7f with SMTP id 586e51a60fabf-30b679eeea9mr2326164fac.39.1754177462252; Sat, 02 Aug 2025 16:31:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Pierrick Bouvier Subject: [PATCH v2 13/85] target/arm: Add isar feature test for FEAT_S1PIE, FEAT_S2PIE Date: Sun, 3 Aug 2025 09:28:41 +1000 Message-ID: <20250802232953.413294-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250802232953.413294-1-richard.henderson@linaro.org> References: <20250802232953.413294-1-richard.henderson@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=2001:4860:4864:20::2c; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x2c.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1754179171379116600 Content-Type: text/plain; charset="utf-8" Reviewed-by: Pierrick Bouvier Signed-off-by: Richard Henderson --- target/arm/cpu-features.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h index 7f2ca51b4c..83875c06bb 100644 --- a/target/arm/cpu-features.h +++ b/target/arm/cpu-features.h @@ -919,6 +919,16 @@ static inline bool isar_feature_aa64_sctlr2(const ARMI= SARegisters *id) return FIELD_EX64_IDREG(id, ID_AA64MMFR3, SCTLRX) !=3D 0; } =20 +static inline bool isar_feature_aa64_s1pie(const ARMISARegisters *id) +{ + return FIELD_EX64_IDREG(id, ID_AA64MMFR3, S1PIE) !=3D 0; +} + +static inline bool isar_feature_aa64_s2pie(const ARMISARegisters *id) +{ + return FIELD_EX64_IDREG(id, ID_AA64MMFR3, S2PIE) !=3D 0; +} + static inline bool isar_feature_aa64_mec(const ARMISARegisters *id) { return FIELD_EX64_IDREG(id, ID_AA64MMFR3, MEC) !=3D 0; --=20 2.43.0