From patchwork Tue May 25 01:03:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 447160 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp3857120jac; Mon, 24 May 2021 19:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO18UtzLv2+pzY8MafFMbu8996lxWPtEtnS0+El9aWWzhUNPaTLB0OKZCQFqWVdRhNmf4F X-Received: by 2002:a37:6084:: with SMTP id u126mr34109202qkb.294.1621909816223; Mon, 24 May 2021 19:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621909816; cv=none; d=google.com; s=arc-20160816; b=FXof0q8BmlK0Zv8Ha/1HRYIy2ncKwueX4DBT2ueE2SzXZDDhtTvp8cPpfo6fWnHgqO /eO8gDQkYdur/3RQj+iLdRVQu8L7Do6+FZ9R950r5dwDpT3hUK4QoaB3x8nhv8IKroaX tmuGTAfPFkKDZbEAWSbElsXkGYfIutsvF+l9tYG27ZK1qJXqhMwigG7GwK3Nj+7R2G9b DHxWofKxWC4ZmIGP1eulysj84Q5AsscMvdX4F6UmHLaARAn7E2BuMVkBwNHaG7AUEisI ejur5GBKs0SsyFDx5iv9nsJFeT7EyXAUgLWBWBrE/r/zxi3lnRezqQniESpLTsb3ama9 6oPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=KPcdnZuAqCJG4HBYcNFFV8xlK+AmV9NrhFUm0MsLHPQ=; b=UfqOmRHbUuh48URGNrIpfnfoLNdfzieYlcCMBYArvZKhgk0vV3VkqG7ZfnmqrpCbgB EnxauAgQlJ42r7zQ10jQqPg3Gpvuf0Wp/XjOrOSqGZOxcTHyLc6N4g9Vfwwoh59PEZ1C qTvvhSFzI/WWZbWWFHwnHjyENSMH/ZKXKzHdmpshqN2sHLnvzy+IHiBElIbl29flMSp6 MeZUsAJnouLccjwWtno/YtUJn+FryEbRGgONgQLNf2VfotEY6QdhLR47PidEP1a8KO/K 7NaacaUwzrfYqZP0cOJ7YHJQ+SMZSb8LA5v4cwu15D5rPgrk8IMHQzgu93mXIHaG5lnW dnIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QPr1qhjC; 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=fail (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 d19si10458752qke.243.2021.05.24.19.30.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 May 2021 19:30:16 -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=fail header.i=@linaro.org header.s=google header.b=QPr1qhjC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llMpj-0002C4-KC for patch@linaro.org; Mon, 24 May 2021 22:30:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llLbD-0006eH-5c for qemu-devel@nongnu.org; Mon, 24 May 2021 21:11:11 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:35530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llLb0-0005up-Cc for qemu-devel@nongnu.org; Mon, 24 May 2021 21:11:10 -0400 Received: by mail-pf1-x42b.google.com with SMTP id g18so20619353pfr.2 for ; Mon, 24 May 2021 18:10:57 -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=KPcdnZuAqCJG4HBYcNFFV8xlK+AmV9NrhFUm0MsLHPQ=; b=QPr1qhjCoLCnXWo91jcXi/EuFp5jx+GwHMkBv6dYC4476in/lfjglA2QVcoZRIDxsk 5qHOeXTg+INbnFyqdrJw/ci6A3k0QQNzw+N8O9YQ2faQAPu+4VXMJak3SYgHinIH3awu xFWhTIEae3wVeD2HYtMFU/vjEyXdLtN9q6AbogBHjDLMz55j9OpZaBm2/bFIloMfU7fq 6iGZOSwPK/sRmLVZHupNSwQXNRTo4jDmVqwL1oMvllCTm0104lwJ4YMPzcrjBg/SqRrz Rp8KylJ8sCzkZ94q7eSmIapmRWrLV3KSFv5vAYbGhybklMrsQwgQDkJkWCCKYnM1y3yw sTJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KPcdnZuAqCJG4HBYcNFFV8xlK+AmV9NrhFUm0MsLHPQ=; b=ZERCwLstlGw4Lq1qJJ24xUwxnvc8R9PsepXAmmGzU+tTXPW9w8kfeokwItEduMidz7 dmr4T2JAitkpzM+WzXgvYak2TtZm3Wm6FxoHAlAb5LwR+/dYKemnihMekIXXSxT331XS Ka5eJPzU9tO/yoqc8TyoOuaYNMPu5m1dHMnVrQVPwvMs1PNTbjGX6n3QEuqIANgHU5MC MM/gAuNSBr8YqDbb1xJc8tiFTH63gvEcTtyDt/VxUmsR99SLz9JGsDasP3XvEX3Su3uz cU8Hd+ixjOoMS2UMXZMDmWR9mHsQG9a0dqNihQg/w+owDiwmGAp0p4M0fEvpmU6DK0l/ VtWw== X-Gm-Message-State: AOAM530QSks43EtiM+FEIgTq+0A5gNqu5Qynr4ROfBOVfmLRfJyiqUxn jP27anOBdmM6yRLStqoFq3pihbc7WTP1Ww== X-Received: by 2002:a62:1a10:0:b029:28d:1590:d204 with SMTP id a16-20020a621a100000b029028d1590d204mr27415066pfa.78.1621905056463; Mon, 24 May 2021 18:10:56 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id i8sm10614839pjs.54.2021.05.24.18.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 May 2021 18:10:56 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v7 91/92] linux-user/aarch64: Enable hwcap bits for sve2 and related extensions Date: Mon, 24 May 2021 18:03:57 -0700 Message-Id: <20210525010358.152808-92-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210525010358.152808-1-richard.henderson@linaro.org> References: <20210525010358.152808-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42b.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , qemu-arm@nongnu.org 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.25.1 diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 0e832b2649..1ab97e38e0 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -648,8 +648,18 @@ static uint32_t get_elf_hwcap2(void) uint32_t hwcaps = 0; GET_FEATURE_ID(aa64_dcpodp, ARM_HWCAP2_A64_DCPODP); + GET_FEATURE_ID(aa64_sve2, ARM_HWCAP2_A64_SVE2); + GET_FEATURE_ID(aa64_sve2_aes, ARM_HWCAP2_A64_SVEAES); + GET_FEATURE_ID(aa64_sve2_pmull128, ARM_HWCAP2_A64_SVEPMULL); + GET_FEATURE_ID(aa64_sve2_bitperm, ARM_HWCAP2_A64_SVEBITPERM); + GET_FEATURE_ID(aa64_sve2_sha3, ARM_HWCAP2_A64_SVESHA3); + GET_FEATURE_ID(aa64_sve2_sm4, ARM_HWCAP2_A64_SVESM4); GET_FEATURE_ID(aa64_condm_5, ARM_HWCAP2_A64_FLAGM2); GET_FEATURE_ID(aa64_frint, ARM_HWCAP2_A64_FRINT); + GET_FEATURE_ID(aa64_sve_i8mm, ARM_HWCAP2_A64_SVEI8MM); + GET_FEATURE_ID(aa64_sve_f32mm, ARM_HWCAP2_A64_SVEF32MM); + GET_FEATURE_ID(aa64_sve_f64mm, ARM_HWCAP2_A64_SVEF64MM); + GET_FEATURE_ID(aa64_i8mm, ARM_HWCAP2_A64_I8MM); 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);