From patchwork Thu Feb 16 03:08:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 653994 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp123279wrr; Wed, 15 Feb 2023 19:10:34 -0800 (PST) X-Google-Smtp-Source: AK7set87sfgKYdlbz7yEYtvAmrWV44Orpd5dFz+MyYNjKsRAOvmRR1qZOi9E4XgzHC2lVtCg2V32 X-Received: by 2002:a05:622a:1487:b0:3bb:88e2:7625 with SMTP id t7-20020a05622a148700b003bb88e27625mr8178205qtx.24.1676517034105; Wed, 15 Feb 2023 19:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676517034; cv=none; d=google.com; s=arc-20160816; b=dart3xzuyjXZz5JVXL40aZCYNl89gSm3m7xj6ST9f58BJkqNTKX3EgV3D9lgusLleT N/Zwx3weQISX4iKTIfp/USXC4b4c1PezlCZtPdOGHNyoD7YNni2lvoCUDZ7eZF/u1ZN7 c+c+9rcpDqyFF0otj5t8VE0+FeJEfd6617PiuBGZGRfzE0g2MJthC4aHLj4ESSbCuNlm eCb6G8OEd0Y3sHApeQxeQwQD6TaR2wb1H5m7ia7GIyWOuYFsn0syBcXgi1i953fuFpOV x24SnNRcEKXPdpl7qLPDaAzKOfOxDIn8cV24ZvuJd0O3j0OfaJ35+KsxMx8+XGzTu/hx 4dIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=0qVQKGg0JYDYl3B/Ezo35aJccYu0GMCuciVVV8M/s7Y=; b=KNxUtfDCAanKw1dZaNM8i2Iv1yR0VkzueqX/d6/VNIyypRIfapXQE+LbqGS2gUcQjA ci6UwpIINs1XIPE1Ew6MINXCfxt+Y5JmivPiwNKhyQEF62lGThY4LIj7cijCXML0zCSG Fw1Pex9pQFGhaVcude9u4WI3OWRVosJkIFUJD32M8NIHnTCzjFeBEhzBm45ALAKSFzRs rVtGADRygXUD5nVVRy2TRlWpXqv+yLwFMj4/W9isJCzSBw6LTxI7pDTt5H7T1bWuVjmT WJ1ZQmKgLlslZ5zkiLZrx6VpTq//pfzUQmUHai3mT1VDKyCXSrO+JgAU89RNfI7yReh/ yKEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w47xxmO2; 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 h18-20020ac85852000000b003a99334f595si522929qth.655.2023.02.15.19.10.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 19:10:34 -0800 (PST) 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=w47xxmO2; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSUe6-0007Lp-H9; Wed, 15 Feb 2023 22:09:19 -0500 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 1pSUe0-0007JI-4e for qemu-devel@nongnu.org; Wed, 15 Feb 2023 22:09:12 -0500 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSUdx-00007u-IQ for qemu-devel@nongnu.org; Wed, 15 Feb 2023 22:09:11 -0500 Received: by mail-pg1-x530.google.com with SMTP id b22so436196pgw.3 for ; Wed, 15 Feb 2023 19:09:09 -0800 (PST) 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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0qVQKGg0JYDYl3B/Ezo35aJccYu0GMCuciVVV8M/s7Y=; b=w47xxmO2lqI1unGUC080deed+U6Mj9PRjzTr3USYcPDJlh0A0Phr08dnr+pn+QM5cf SlnyvUYdXZrxiCNC42QMnmMathLnh9Mc/DJbVcdOq4GtT2GPZRx+1aU+pE+zadD7fuX0 kn9hRIL3V9CYDQL4m/8YMKl1YD3/JfX2Ul/xTKPJo1zjElEtnpSlNuVS0KZClBJ3c2Kt z2L99JAIZGYT9RlVISg3L4szFuRDFQO+XnnI2iintgXXUPMYSFU6IWlxUXZhri+5ICTL QL6Wf7L2Zbsft67vQVaTdnB36yd9NgUpNUq3TWY4HVdW6vkqy/Ue5BGprfO6xRxoUQ5W B66A== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0qVQKGg0JYDYl3B/Ezo35aJccYu0GMCuciVVV8M/s7Y=; b=QN62RMUJZiHg4nVocVQCaPFXGvHEjISNCOyDFPm2n23sRGrGRPyxzNI3inhnav68IW nfEpz6utZp4JZA6rhMxEJWQJwxGYGxUw591/eWt+Sv6K0yKdEPVxN9kwKXd0i/LK4CCa 9lwzJtT7d1Zcb5poRTJeXYyt6IF8x85FMPDJSRbCrUw89Mk/KxkXUOhiRPMqKzMcHoUK n4mP+LqavpUBPbr9YfUTIKW0t17o7nCzXMFKg8cf3p+pKPY0pJ0V0JX3JdjaubTI5LoV j3Zo9a5kUBiKVvQDeYufRehqRyGUYnphdTX7QV3eLlanBI4SfXlsCv1d2mQRUu2OFEzB ItPw== X-Gm-Message-State: AO0yUKVXGcv1vYKAfIi1HUroojjGW6mItGISjvk3R2MHlI5NqRIxYsL+ iPqzt5sgY4dTST++eqj8t4ZYNswsr0vPnWvAjgM= X-Received: by 2002:a62:52c6:0:b0:5a8:68c0:5607 with SMTP id g189-20020a6252c6000000b005a868c05607mr3535553pfb.21.1676516948196; Wed, 15 Feb 2023 19:09:08 -0800 (PST) Received: from stoup.. (rrcs-74-87-59-234.west.biz.rr.com. [74.87.59.234]) by smtp.gmail.com with ESMTPSA id i25-20020aa79099000000b005810a54fdefsm79051pfa.114.2023.02.15.19.09.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 19:09:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v1 07/19] target/arm: Add feature test for FEAT_LSE2 Date: Wed, 15 Feb 2023 17:08:42 -1000 Message-Id: <20230216030854.1212208-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230216030854.1212208-1-richard.henderson@linaro.org> References: <20230216030854.1212208-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::530; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x530.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/arm/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 7bc97fece9..2108caf753 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -4049,6 +4049,11 @@ static inline bool isar_feature_aa64_st(const ARMISARegisters *id) return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR2, ST) != 0; } +static inline bool isar_feature_aa64_lse2(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR2, AT) != 0; +} + static inline bool isar_feature_aa64_fwb(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR2, FWB) != 0;