From patchwork Fri Jul 8 15:15:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 588563 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:bb16:0:0:0:0 with SMTP id jd22csp801578mab; Fri, 8 Jul 2022 09:14:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vCCP84hZl4ADLscsr/yZ5X269OGUFsZqnJOvXblpHomRo8ZtBdobxVJ0xAcQ0v79bxonC8 X-Received: by 2002:a05:620a:1537:b0:6b4:8116:e013 with SMTP id n23-20020a05620a153700b006b48116e013mr2947748qkk.172.1657296853273; Fri, 08 Jul 2022 09:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657296853; cv=none; d=google.com; s=arc-20160816; b=K5k+Hl+PS0hezjk2VUix5BJE3sp6/nnt8SXFHqu3NLoSSQyZL6za+fYsmp5uTz1MNl Hptm7NSt6CcUbX/Qr6kWkmYAtsbZvCIoxddadawYhomku/GSX5UQYYTrVuyFOb1NsCsu FAcVGNu6LSn6exwVmIF5aGDA4ZTqiNw12/xApMf2QE5FdYYL4gNP6tC/SiMA4odsezY3 q/A/a6Ps1Dcl7GhiVEUtWhFbqC+aNj0KCL8hs7vqNumq0TYeg9ecPZu9miKYK2m77ngN GKB3V+lfp7XXBYe8hXmqGd4wqxBS8qBIDa7j+eutXyLHssdUDjhywQn1B9pCdoAfOlpy 5VhA== 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=IH0GiEUf1cl31EpypJHGc9N38GuuWqV/keLjTWnDRUI=; b=sbq0PfMacQ+DVud436yxFbtTj86i/m3nC18luvLZxZOJSGeLhmycfWNQJpfQLJ9tuY B/1NMstsEIEZ7qx4vHVTw26WVec1MNxgBLEIr4LtE0wO3A4G+CyWceHuizTnVoAxWiID u8aRn8FHPIjirYsJD6ZsPctI+JonNIHPQ5VeCCTZW243Y0BYNbM5oE8stOcTXJHHyIAE aGTBWvmahJpiakiDMqMHw+qsOYMdpYnJ9VCerbfGDCKkpEnGiAAR4tYSaFd11vUqF778 9hH86y4lAosVnxgzJPotUcnFzwwlZJk5NKe+NEUQOTZPtrmUd4x7bZv0tDU/b0pnHjXP zwQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xgquYLXY; 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 r26-20020ae9d61a000000b006b265facb2asi12762278qkk.165.2022.07.08.09.14.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Jul 2022 09:14:13 -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=xgquYLXY; 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]:50234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9qcO-0003k5-Sv for patch@linaro.org; Fri, 08 Jul 2022 12:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9pn1-0003qm-U1 for qemu-devel@nongnu.org; Fri, 08 Jul 2022 11:21:07 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:37518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9pn0-0003JW-Av for qemu-devel@nongnu.org; Fri, 08 Jul 2022 11:21:07 -0400 Received: by mail-pl1-x634.google.com with SMTP id f11so4055476plr.4 for ; Fri, 08 Jul 2022 08:21:05 -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=IH0GiEUf1cl31EpypJHGc9N38GuuWqV/keLjTWnDRUI=; b=xgquYLXYJXsW1UdcvjlI689LtEmJcoi3Hr7/dyoIlSxt75FzcYeh8n6q5oqoVq7jiM bnn+CpvLDm4RRA7cKilyTkHndqjIruzjPAJZDzZVZa+ktu79asB5pjTzdT3QyWnJPrPY vkUm6ZrfFg8/jiwajXZyBaJvPUV7UN3IpzVDqJQ8IpU4Zbod5h6t1oUSuqpiV54rVOXe M9a5Wtnnrwrx+habCsi3qxjLPspeXVtqjm/NKWyHi6IHyqkysnvLuxeXnCbnlGb0xt+5 0drSnI7tYK9i1QyQKlKfbzqmBCsHFKnI/JML9Aul+4PoeLS23o2+qoSJFG7YMdtodHvc 0geA== 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=IH0GiEUf1cl31EpypJHGc9N38GuuWqV/keLjTWnDRUI=; b=cWxefQuHCzFU6Ycf5AqW3cEz599lRFX9VyisxU2mICZvncDt0QcOvOyt8Aw92/xdQu 8anApUVI2kvlWaHewL2my5Uo0UxxOHGQdo1eEUXLLt10foT4s9Ac7/N53uw7vXEkfNlG dd5g3LCBF1R1ce/RpGk8LZwn9jTd1H4mQnL8y8II5ch4rGAd+wGoxbqV35J1dvSa+YW4 HJ0qIJe4KvSPDEY+P8E87Wi2FqNpOfa863WG3REaDSove0/z1g2KuzVT6fNAeyS58kFw 6d8zYj01Dsrg+I6puBYxhkL3nkRwLwGk/KZoXLoHKw1JE/2Y1ROjohS0bXyLXAPjWNV4 XCCg== X-Gm-Message-State: AJIora9zvK7QnNj9BK7lYXqeh3NjoH5opoaOoJawBHS9Hl99RRf+kLVy GBYWlPTy2bniJjdZ6NvrWyxJRTHrRGDAdYNH X-Received: by 2002:a17:902:e84f:b0:16c:76c:561d with SMTP id t15-20020a170902e84f00b0016c076c561dmr4301208plg.119.1657293665113; Fri, 08 Jul 2022 08:21:05 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id cp2-20020a170902e78200b0015e8d4eb1d7sm30067741plb.33.2022.07.08.08.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 08:21:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell Subject: [PATCH v6 45/45] linux-user/aarch64: Add SME related hwcap entries Date: Fri, 8 Jul 2022 20:45:40 +0530 Message-Id: <20220708151540.18136-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220708151540.18136-1-richard.henderson@linaro.org> References: <20220708151540.18136-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x634.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" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- linux-user/elfload.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 1de77c7959..ce902dbd56 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -605,6 +605,18 @@ enum { ARM_HWCAP2_A64_RNG = 1 << 16, ARM_HWCAP2_A64_BTI = 1 << 17, ARM_HWCAP2_A64_MTE = 1 << 18, + ARM_HWCAP2_A64_ECV = 1 << 19, + ARM_HWCAP2_A64_AFP = 1 << 20, + ARM_HWCAP2_A64_RPRES = 1 << 21, + ARM_HWCAP2_A64_MTE3 = 1 << 22, + ARM_HWCAP2_A64_SME = 1 << 23, + ARM_HWCAP2_A64_SME_I16I64 = 1 << 24, + ARM_HWCAP2_A64_SME_F64F64 = 1 << 25, + ARM_HWCAP2_A64_SME_I8I32 = 1 << 26, + ARM_HWCAP2_A64_SME_F16F32 = 1 << 27, + ARM_HWCAP2_A64_SME_B16F32 = 1 << 28, + ARM_HWCAP2_A64_SME_F32F32 = 1 << 29, + ARM_HWCAP2_A64_SME_FA64 = 1 << 30, }; #define ELF_HWCAP get_elf_hwcap() @@ -674,6 +686,14 @@ static uint32_t get_elf_hwcap2(void) GET_FEATURE_ID(aa64_rndr, ARM_HWCAP2_A64_RNG); GET_FEATURE_ID(aa64_bti, ARM_HWCAP2_A64_BTI); GET_FEATURE_ID(aa64_mte, ARM_HWCAP2_A64_MTE); + GET_FEATURE_ID(aa64_sme, (ARM_HWCAP2_A64_SME | + ARM_HWCAP2_A64_SME_F32F32 | + ARM_HWCAP2_A64_SME_B16F32 | + ARM_HWCAP2_A64_SME_F16F32 | + ARM_HWCAP2_A64_SME_I8I32)); + GET_FEATURE_ID(aa64_sme_f64f64, ARM_HWCAP2_A64_SME_F64F64); + GET_FEATURE_ID(aa64_sme_i16i64, ARM_HWCAP2_A64_SME_I16I64); + GET_FEATURE_ID(aa64_sme_fa64, ARM_HWCAP2_A64_SME_FA64); return hwcaps; }