From patchwork Tue Jun 7 20:32:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 579343 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp5505802max; Tue, 7 Jun 2022 13:59:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa9VFwG/156zmyQ1U5zsxCLs+v+qN+5uKR49SG9fn6qTILMZiHxKhUGJe04dzMUg9jNOON X-Received: by 2002:a05:620a:1a16:b0:69f:b538:3d4b with SMTP id bk22-20020a05620a1a1600b0069fb5383d4bmr21533936qkb.317.1654635569052; Tue, 07 Jun 2022 13:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654635569; cv=none; d=google.com; s=arc-20160816; b=W+Lkq9DUpPP+IFsvom/Tc9rAQF7pJAk29glGCRwcXFIvCqeJpvw6tW1kANHwaLAZ82 wq5dxitQ0xvN2P39ekwpIa8x7T4fSOte7HJ5HbzLGw2ZfTMsMcCcGeEw8Zwi6lBZRbl4 NjtQ67JsaurvP2uYW+/TuuO4nTibo10HJmLlijbETxqsK7vqJWYHu/P8cVg5dx41tHrt l0S+L/5s4pErAH9a3aA6yy8naVF5NR1LwrIsY2umuFXwDhxkoVy6euuLXYwEAXtdU4yM fgOfcoD/RrCRTLf+T+j90U5SsM48nfuWDRR8T851D7Rfj3wA9p5LhTByIbSNic8ILsHu o0mg== 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=uCpGQKdd2ynKIQl2a0URRju+a15a7A+73f9CXKIasy0=; b=UVgspV4vSpxIHn3wdP1bf5Z1fECgwwGX71laeR/FU+eXmtgJRiCYIVk07tIHlCLRKD eTMRPbqBuc+u/4ERIdx45KSQX+vL1BibUbOBrZ38HHlf4VihCila5aPjkvl3C+x4KJ7K tc4mgb7zVgTUbG1WT2etJ1E3KR/cXZ3H8ybMS4GakZ/rkQb6il/iV0JLETkGNPcIUzoJ rVEV/tYEmU/RyoObB4cdnOWDYIiB6mmbcl7FvdkaaV7Bv/U84KC0e+B7CbBGbxnoLfB5 F3GGKslKaTYiwePnU/r4/c7PiVPYChrofcNJB7k/iSILSVkdXhClDcBonH9UOGzgdJci HXUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ASO0zUIQ; 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 j11-20020a05622a038b00b00304de06690bsi7437548qtx.460.2022.06.07.13.59.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 Jun 2022 13:59:29 -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=ASO0zUIQ; 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]:42132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nygIS-0006os-Jn for patch@linaro.org; Tue, 07 Jun 2022 16:59:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyftL-0007qL-Vg for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:32 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:40865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyftF-0007Be-HW for qemu-devel@nongnu.org; Tue, 07 Jun 2022 16:33:31 -0400 Received: by mail-pl1-x62d.google.com with SMTP id i1so15790395plg.7 for ; Tue, 07 Jun 2022 13:33:25 -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=uCpGQKdd2ynKIQl2a0URRju+a15a7A+73f9CXKIasy0=; b=ASO0zUIQjhNW22emiswodrWo5M2+wvQ32cU72N+sB0R+EXPSYmf9iyrEZ1j4lO7zrG 7VLCvwaW0R746e4jh0X+/Kuefl2YHH2um8PcyYjIit8pjU4TXm/eYnAk7EqZgkDHC+1i i4Qhe5ibgZVRavhmlLfZXsYCG9FVjreVfGqmsvyTpSMj5vA+n96+xTTNIXQ3104ItWiC x7ZBN0Sjj3y42hqP1y7qNJxHSGsCZa/Lxv1o4ZlGK+O2rPFK7VBjSwSguHR0hHtynoSR uKUBkfwG2o+IXh2oInEoR+81htisDBdMU3637n4OtBAvlFZ4HMfAY+PXuh3tV8Pe4HFn UZGA== 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=uCpGQKdd2ynKIQl2a0URRju+a15a7A+73f9CXKIasy0=; b=spiAHgCO4jFmbu4FmbjWAWJfI+Cb8f9on+x89uCXBEphJE6nP8IQ0bIWVF8qjfYo+U KxSsPgqB4fH+u7Npy3TEPV0tugE13ZaWJWKWr7316sqpVMZNDmJFAHtwNo2HJf7qNwUk gQtoHENcbLdskv/T3xV5RcgxXh5H/rRglU1gk8fYxBtyFl+/eGPZSp6QBzHGHbrn+0jH n1ohLCzs4d6/5lW4lDcLnFmRtYLeWNxvjPI3LR2mlvvvSAVJU4n0DC8s1AVyhcmRNoF0 MCCBI1LxcpID4SUsKGEeTCvbsF93pW8vsIB6olZVAFDSjiUnlGfSleptPrRk/dkWR7xO fOnA== X-Gm-Message-State: AOAM531kB/7sPkUdW+gltRa57uJT/SwrnzQBu0wImHuRFp6S1R/DujWj s/wm86s77nj3POuBcGyfW9TuqWdW5MFHLQ== X-Received: by 2002:a17:90a:e7d2:b0:1e8:97ac:da0b with SMTP id kb18-20020a17090ae7d200b001e897acda0bmr8213127pjb.242.1654634004747; Tue, 07 Jun 2022 13:33:24 -0700 (PDT) Received: from stoup.. ([2602:ae:1547:e101:3cf2:c634:5b19:25f6]) by smtp.gmail.com with ESMTPSA id s22-20020a17090aba1600b001d9780b7779sm4227856pjr.15.2022.06.07.13.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 13:33:24 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, qemu-arm@nongnu.org Subject: [PATCH v2 19/71] target/arm: Add isar_feature_aa64_sme Date: Tue, 7 Jun 2022 13:32:14 -0700 Message-Id: <20220607203306.657998-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607203306.657998-1-richard.henderson@linaro.org> References: <20220607203306.657998-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This will be used for implementing FEAT_SME. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index 2cc28f9e59..ce89ef5dc2 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -4043,6 +4043,11 @@ static inline bool isar_feature_aa64_mte(const ARMISARegisters *id) return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, MTE) >= 2; } +static inline bool isar_feature_aa64_sme(const ARMISARegisters *id) +{ + return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, SME) != 0; +} + static inline bool isar_feature_aa64_pmu_8_1(const ARMISARegisters *id) { return FIELD_EX64(id->id_aa64dfr0, ID_AA64DFR0, PMUVER) >= 4 &&