From patchwork Thu Feb 14 19:05:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 158443 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1765021jaa; Thu, 14 Feb 2019 11:26:02 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib0Lb6oLyP+owndokoPSmq9YagaUIdgHi8seIblzRZVilG++AYUaTJ33a1EpHtrKo+PWfYR X-Received: by 2002:a25:254f:: with SMTP id l76mr4729432ybl.347.1550172362640; Thu, 14 Feb 2019 11:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550172362; cv=none; d=google.com; s=arc-20160816; b=CztTtW0j1n4tLLJfYDK1tahS8yLGT1uq3/Ru7fiuZKCoPotiUuX+TbH2E2hb4h5X2H 5EXxdioodDBLdtBGzjCGw6iiCeSum8K3HjaZsGkiIOpxSoNRg8iBb5dEZowKNDFDKX+5 qKYN+zOToMPBbNJCucQvHq+K9TJ/MbwZo2lbwrovuVBVKFmUD8VMn7P8lcd39K2vUcax JVBllVvVd3uMoSu4Arc01SZp1cdGv6FQlVxjP5QIOBDx5uBXlQBZjo27O32YWROEGwbv NfOpORUlFmC4xkPJCAHKyy4jnx/3m3ZE4u4vHh+187chn7caezuKGWYtV3dcPLAxYTn3 S9Dw== 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:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=LICwmtCx3JiCh6X0JwhhiyFC0QYKpcXruWHUMrH4oqs=; b=IBeykvw2thqOT6XPinIB0a/tZzvfCBvR40lO/YfmKquTbE9xLboiAU0/571MYJcWze 2qiOX9aUqflzIvueb1CK6uTWf0+8n0cLp8qLQs4A6teBIY7IafKLvjlEOJvL5cx2uo6b d5lrKFfEnzX30tBJz8Gd/OlMNAKpVbBO7HBBYK5wAghpFHi2fcN7a6RZP8DGgJIuXzl7 Z63hz8cQsfpYYlZm5OZdz7KLdNYDRv4NdfjiUHGI15O5iMtwwsgi4aenCzDkEcEmwLfe +0+oOlkTbnrKH70tw8x6fw/TEDVMZxdTMWLk5s27D49t8i+Z98xZ8HrHzJopAw3y/gq8 a72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=jzjCvh+G; 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 r66si1996493ywg.247.2019.02.14.11.26.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 14 Feb 2019 11:26:02 -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=jzjCvh+G; 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]:53796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guMe2-0006D2-5R for patch@linaro.org; Thu, 14 Feb 2019 14:26:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guMKz-0007oG-MH for qemu-devel@nongnu.org; Thu, 14 Feb 2019 14:06:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guMKx-0004jL-Nx for qemu-devel@nongnu.org; Thu, 14 Feb 2019 14:06:21 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:36838) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1guMKw-0004iR-9m for qemu-devel@nongnu.org; Thu, 14 Feb 2019 14:06:18 -0500 Received: by mail-wm1-x331.google.com with SMTP id j125so7206816wmj.1 for ; Thu, 14 Feb 2019 11:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=LICwmtCx3JiCh6X0JwhhiyFC0QYKpcXruWHUMrH4oqs=; b=jzjCvh+GfOv07LiwhHZgIgh+EWBiPqZ/cxlOr7t6sDjUSBHMxfus81ptv0BSbo+h8I MAf4XQL+pgN0wvD1rMpFqFAu4pmFtH/ALC63MomyoYYr5efjSMUQT5oZ5ldCvhMcnkoi yuQJMxdQ9lky0YLzKo7JTKLiVsXoUrBf6CtzUXl0Jd0tbuhle0efxqnn93T2QUCb7ale gBoWigvsU7AgV9UIg7KZiIqCZz+yBBenTDB7Hmc5Fm0d7jJe1JRJaWX32seE9VmJCQF4 btw/JZHqHDPWEf1ckKTrJgDJ/fW5O6Qw3MXUyfzeZklYOen6NbUfxIdB6sSD633KHI34 qtqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LICwmtCx3JiCh6X0JwhhiyFC0QYKpcXruWHUMrH4oqs=; b=pdBsoqcm5VcYgJ3/ARnS8mRYWanZuCYRk/PFnEUGKCVoHoBvlk0JWVuJri5FmwoVlb shCARP+PDFfv6+5B7F+gAKcKdzNKzy6U5oBRMjI3RM8FcLWn8aayTYj48sb2RjmaS4kQ ZReVlkaJfgivaKzoWmh6LTW8XmHpXPLoVSlBcMk0IZBIenJNWOfGKQx+OqlfZz6nMhdX MkkBafZYi0xE9bYKCxgavRdt0qpsYmJIrhV6wPkT126pjYMKSVMlo+5orMhuNr6+7Y0w GJPr+CgpPhg+NyGnMgaPyt3MctAelEhrHpIeKXzTNexu4iniWelU3VEGKYVkIoLPBl51 tgaQ== X-Gm-Message-State: AHQUAub2G+ynLQg3tDR7OPzSVxFi8sWGlkpz0KMtJQ3HPhXW9O1IRlhb 2wQVoEHrSJLeJUxc4k0ibtrCaPkVXehUyA== X-Received: by 2002:a7b:cc03:: with SMTP id f3mr3661137wmh.95.1550171177059; Thu, 14 Feb 2019 11:06:17 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id n184sm7798471wmf.5.2019.02.14.11.06.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 11:06:16 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 14 Feb 2019 19:05:46 +0000 Message-Id: <20190214190603.25030-11-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214190603.25030-1-peter.maydell@linaro.org> References: <20190214190603.25030-1-peter.maydell@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::331 Subject: [Qemu-devel] [PULL 10/27] 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Message-id: 20190205190224.2198-6-alex.bennee@linaro.org Signed-off-by: Peter Maydell --- 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 775a36ccdda..3a50d587ff0 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) \