From patchwork Tue Jun 28 04:21:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 585510 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5036:0:0:0:0 with SMTP id e22csp459033mab; Mon, 27 Jun 2022 23:04:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uamNLimcggRbiAtbY4TCMHuavAstgjknbJVrUyTMn0hEtMhI9lUM92pi6eF4rfNRw5tKe2 X-Received: by 2002:a05:620a:2590:b0:6ab:91fd:438 with SMTP id x16-20020a05620a259000b006ab91fd0438mr10251351qko.312.1656396285502; Mon, 27 Jun 2022 23:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656396285; cv=none; d=google.com; s=arc-20160816; b=PLs8D4wV0DEWLyAM1+AvgtfbTxG8ay7SWLsD6qDUE4O7N+jgcc6ne+DjdMDDnlBMwx 5RDEIt03sF09KZv5ZqRmskw2p2j4Shl8WmX5gTlKjnP9dzBnrtMBuBuXvyu2s/n2gvXE s3nOSQd0RmD+k3mnokvuC/ROpEgVk4zvf/t4Z4DNLv99jXnSVbSPc7bu83ViBvt7rVLJ fbv0lVrk9fHIvDmHriGSknIEN4OUcsLhHmdyJ7uou0PajD7vBhqFGir4+IX0p+QTwaSd yBEWeTZLtPeX+CLrBSqosu7xFq/zJN5QGpx0QnPyGPekHZIjw8hda1fIZWOjxXLcigDe mV0Q== 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=VC8ZWzxnyu6yTnDCbARNM0LQoo/mTr0TQhi66jhQlAA=; b=Mb1o1y6D49C9EcXYZzRuFKtD1Lv6AW5XdO3IykWl9Od4kZYcvA9FmKB96OLKsUQNQo FbTjIQYZ7jsewYx0l9cZPIYirwxXkULpRxgftOAB0HD1pI0kvszZ/DH1OA+799rPknFA ifzWNg/v+UHD5JNNneqYdbxtqxOHKLwqgysq2/RbSRTjgn2e8tcy3Hfhq3Iky8cb29Ey fciXCM4lYSq6u9mQaiYjOFqzDPoa03V9HY/1LYFvHDlCzZtHvkjxBtz3ViKVt3GB6AUF QFi7JsBtBm58ui/uXPWyZF/MBCO0uXntlyBHFKw/GZm5Wx4b9/1vnd6/1CWpnUEA7JPK Yb4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EnF7Soo7; 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 10-20020a05620a078a00b006aee64374a1si6170364qka.131.2022.06.27.23.04.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Jun 2022 23:04:45 -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=EnF7Soo7; 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]:50828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o64L6-0005if-VO for patch@linaro.org; Tue, 28 Jun 2022 02:04:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o62no-0000YS-Lq for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:26:16 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:37815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o62nm-0004N8-Pg for qemu-devel@nongnu.org; Tue, 28 Jun 2022 00:26:16 -0400 Received: by mail-pf1-x435.google.com with SMTP id bo5so10908529pfb.4 for ; Mon, 27 Jun 2022 21:26:14 -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=VC8ZWzxnyu6yTnDCbARNM0LQoo/mTr0TQhi66jhQlAA=; b=EnF7Soo7x/yp9bK5HX2/N5c8/ae7rAWSAvvf48wBuBAa16sm4m/zZIBCa08cnwnLrM viJqn7+Lwggj2ntuIQ+WUfeFVGtUBBHh86vRAUyYLVsnVJX8GMXzO2Y47QlO0JjuqHzY 0ne9PYmovpPihskoDNx/mHtRJJolNZ1TWrQeuct/Y90M77bDK0qzNsEA7HomKXzdCbUZ 7LAc9aapWyQyYOJQiVW0ZA6ZHL06yiByKAB8b2ds/Znb97h8ctid430Cxt54/BPqoRWO ulidfXaB6DJtZYayxq8l6X4JT+pCMdUfZ9MHuKZ80S/GJsOKNFzTTGiEKZrxtPH3k7/J bURA== 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=VC8ZWzxnyu6yTnDCbARNM0LQoo/mTr0TQhi66jhQlAA=; b=mUPSChW3tpkqFh8RO5hfaY3ySXXYnc/KmdOS+OqXkCaUk3ds+6cSmcn7gzPokUUD7E sD84sQqc34DLsBaAfQOKLZKxI1PVvv26OM3rq9cLhR0HrrkU2oAxnhTvvHdyM/x/hqoQ GNPIKuM1tyB5U5Q5ze3tNa0S/9jnIZTHwi50kBKXj+25JOIwlz+xwUt9/4mzG71+r3kW hE1okxcyZFMPlRit8d3OzCmnc+G42xc6nSXP803ib/gniWWMr0OmouMFx7rYGQUkhOTu ptV1FMz3+/9U5eWWZV4uDIAuvCXtXq9v0SwNqXyVRao1y5C54JdJWsdPfySLC3bmR8BG lzUg== X-Gm-Message-State: AJIora8XxENkALBi4/QBPedbr0a7oVG0YR/ET4NlvW58SwS8VxhQWm1j 30HG91LjN9saabnNrO+KLe4yHALBxHCX8Q== X-Received: by 2002:a05:6a00:278c:b0:525:65c0:6415 with SMTP id bd12-20020a056a00278c00b0052565c06415mr1455052pfb.33.1656390374005; Mon, 27 Jun 2022 21:26:14 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id k26-20020aa7821a000000b0052517150777sm8160565pfi.41.2022.06.27.21.26.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 21:26:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v4 45/45] linux-user/aarch64: Add SME related hwcap entries Date: Tue, 28 Jun 2022 09:51:17 +0530 Message-Id: <20220628042117.368549-46-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220628042117.368549-1-richard.henderson@linaro.org> References: <20220628042117.368549-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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" Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- linux-user/elfload.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 163fc8a1ee..a496c37855 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; }