From patchwork Tue Feb 5 19:02:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 157529 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp5586735jaa; Tue, 5 Feb 2019 12:06:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJxQ+JiY6j6XQOaZg31LcCmaQO5Wg41ePhwq1RkPMCw3YBCOKjKAXiEw7OAAWhwbLdJ1st X-Received: by 2002:a0d:da44:: with SMTP id c65mr5592709ywe.218.1549397163649; Tue, 05 Feb 2019 12:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549397163; cv=none; d=google.com; s=arc-20160816; b=PBDbLDG9QPwIFqKYojGX9+KkonLYb4SJT/WGa4RjK5VV2/NBs/4Rk1LVwMSyw0m+JP W5v69VpHVJuWMcFMn07nhZK4Gt08tu0hJH2QcqACg8LckX/+X96l/RmPJCLnTGRLmr7o kUdtzQYP0+cT9uM4KzG0dglJEf2tS/LLH4xv07IqyzcFAcKn6Y63DUMvonXfjOZctTHE p56zcptGPGiNZi1WGgPkzCbaVLQTBlxdhTYcTX59HylB0uVVlW/LUbjDuODiLW+X56Bm abHER4tl7U6NYiHDXS3BmprbszzrAFSddqKZuk4Hwe3AbSs5cSPQx8bSFLNrXOnNbBTG ujcg== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=V6utdBoArSjP75yC+1U3GRv6m7Z5RTe0msKq4eU8rIc=; b=Lp8GBFYRJMHkwUpB17RDnn0bo9Notn1ZDa7+xntt8mHH8CF1dZSbL/PnqUiDt/KWxW n9YZ7MUvlpy0uvSfWZgON1Fnwpa8euVLiXK3RzrjFOgjKsO+i5vjJUJ8l8/xhOrW566x EdVyMb7Xe1BGfWvv6pw4Pqemi31WxU+c+CUgxpKR8MfOhr7hzslcEXN0GKl+cEyPudj+ wgJAH8aUse89O6TJd9J79EyUZ6wxUoNZ5BAKZHw1MXEbQ2Ip8eTwWNdfEe3fLDPJPry1 zq4flLLTLlZLH/zzM9bhlsfhKpOSnI/r9J1YM+aI4YWCTnJls5WiXcFVkAaRXDU7s/Us UpjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qzMlilZr; 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 202si2460723ywu.243.2019.02.05.12.06.03 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Feb 2019 12:06:03 -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=fail header.i=@linaro.org header.s=google header.b=qzMlilZr; 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 ([127.0.0.1]:39610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr6yp-0008FT-5J for patch@linaro.org; Tue, 05 Feb 2019 15:06:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr5zd-0007sk-Sw for qemu-devel@nongnu.org; Tue, 05 Feb 2019 14:02:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gr5zb-0004Ju-Ph for qemu-devel@nongnu.org; Tue, 05 Feb 2019 14:02:49 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:42116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gr5za-0004BI-G4 for qemu-devel@nongnu.org; Tue, 05 Feb 2019 14:02:46 -0500 Received: by mail-wr1-x443.google.com with SMTP id q18so4848740wrx.9 for ; Tue, 05 Feb 2019 11:02:30 -0800 (PST) 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=V6utdBoArSjP75yC+1U3GRv6m7Z5RTe0msKq4eU8rIc=; b=qzMlilZrCMPioJfoMCi9DZ+Nom4hrAEHXb87jgsjamcsAdcelAsZUh5nzwhmSn65QE UbZ5vRIpIJkDaz9PlAHVGHzf+PD6dYiqxc/VUzDbAfBxJIrx2WLr41vYob/SeGIWbYMp sWm2eWnbFEy9Tebi4QkNNRUxw7yK94+tbEPvzyQmJxYRBtpHCu52U7zBSuUOGhOVPeZI g0T2JmH9eK/eIpbH5/O3bjYYpSdybVRpP4SGTf4tmwF471+iZVg3KHnX6Qd+maxZdYRt 1SMlBUvcr6pUerhenE9JdL+TsCuy742NGJfQrtZ1UKlMoQaHIy6AiFW+crY41dWNzZSq qy4w== 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=V6utdBoArSjP75yC+1U3GRv6m7Z5RTe0msKq4eU8rIc=; b=Y0YzDGmvanNmmx6zhhtLshQrkj2qMjQ1Y0uyitcsX0po412DNkCbfI8C3tpBVtsilp Bnyz664V5yNqH1wAivm6h0gJnyZF1yHcm3kMJ9gmVY87z8ioMsGxU/pzi0Cr9z9ZU5xs kqMTeHZCDUmoDHt2OjV7LuGyohDBwaiG170dmL/9UTqhUkOy3KFhi+huvJpudhLYLJfL 0Q8c3g/ol5cvViETZ30Yepb+0qs4ZxteLonbNvQnivy62EsddpT0tC57wr/QdQse5cp4 I5om48CcUv6IT4K65r4/oIIAz77hW9jK3cpNEYAZbqARp0cJH+9WCZRGfblAJP9Qhya9 pGtA== X-Gm-Message-State: AHQUAuaZcu7htAXyIv/3W5Dpp8pIoiooRC2sJxYi6rxz5vzy4HuZx1BD Da/UF4nWrSgdmuawbWdeWYb3Nw== X-Received: by 2002:adf:de09:: with SMTP id b9mr4556080wrm.295.1549393349793; Tue, 05 Feb 2019 11:02:29 -0800 (PST) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id v22sm4901940wml.37.2019.02.05.11.02.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Feb 2019 11:02:28 -0800 (PST) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B935C1FF85; Tue, 5 Feb 2019 19:02:24 +0000 (UTC) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 5 Feb 2019 19:02:23 +0000 Message-Id: <20190205190224.2198-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190205190224.2198-1-alex.bennee@linaro.org> References: <20190205190224.2198-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PATCH v2 5/6] linux-user/elfload: enable HWCAP_CPUID for AArch64 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Userspace programs should (in theory) query the ELF HWCAP before probing these registers. Now we have implemented them all make it public. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- linux-user/elfload.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 775a36ccdd..3a50d587ff 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -580,6 +580,7 @@ static uint32_t get_elf_hwcap(void) hwcaps |= ARM_HWCAP_A64_FP; hwcaps |= ARM_HWCAP_A64_ASIMD; + hwcaps |= ARM_HWCAP_A64_CPUID; /* probe for the extra features */ #define GET_FEATURE_ID(feat, hwcap) \