From patchwork Mon Jan 28 17:39:39 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: 156812 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3699839jaa; Mon, 28 Jan 2019 09:44:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN7iiVAAKmCJ9Ld2+lIvIVRU0dkJlHXwMQgyPTpj9J17qh6tSNtjMl/RQFEsUU/BnrlHpXA8 X-Received: by 2002:adf:f149:: with SMTP id y9mr24306478wro.284.1548697441765; Mon, 28 Jan 2019 09:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548697441; cv=none; d=google.com; s=arc-20160816; b=poZsLG+BKDmdpjYKWNCgt7Ju7qqs8yTj+qIFx0Zg1ofgW2iZk34tvyXmHZ68JhoZma NituaPCJDkeOq/Wm8OBZI1xOAGO5Ca6y4qnL5nNzVMK5D+pqzmc9msZTk1SEUPbDyFOt 8MNWWgQiPFxdFyhXbEpZ2DvcY+RdbEXvj3hI+SC/EvBjOOaC46B5B4EZ95lhG/VFf5KJ B1vYyxw+wAr59/4XC1oOt1W0HKO5dz67iCVu26iWFKN73JdRTgh+K24xdw0mufdhLe9I rc9cy/Wu+oLflokt6kWmjFiz7Im9DB8KUPVxnHMr/usHyxQL2D0joI2pMOuNqaAEgxiY /cgg== 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=gv/cJrgo9QfUMJI8RUh+VtmAs3wwqwtLhBCdRA/IuRQ=; b=o8s2O8EzOCkn2S0ONLqY9xi59zOJdjLHzohbnPgsTOPyGsK4bl8oBqyPCdmdUR8jOk CircQLCFhzTXq9oi7Ter2Zxbg4RUtxNEvQ9K+3thT3K3wyQft1TfUXsKRjE4qJyTJMUI YtBkf4lpJQqEL++cXY7yMxMhXsxybOCff0PQBlG11tcNu5n2o/3KYEWWk+0YHmzYvQhX Pbaz1opV642k+xjDIF6T5rNRy5wr+4M7UUWakjAbQQBwtniHuNSusjaE8FwdAm2ttYzr pShh4jlkqyjUim8tVqXCdO0OmGmsfSOD0QBfnlQa8rAKE4qQ8+3yzGKFWckXVxiln4S2 nhLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eQ5rBqI+; 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 t8si60226wmf.11.2019.01.28.09.44.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 28 Jan 2019 09:44:01 -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=eQ5rBqI+; 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]:35991 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAwy-0005UP-MT for patch@linaro.org; Mon, 28 Jan 2019 12:44:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAsw-00027e-TB for qemu-devel@nongnu.org; Mon, 28 Jan 2019 12:39:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goAst-0003Yy-O5 for qemu-devel@nongnu.org; Mon, 28 Jan 2019 12:39:49 -0500 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]:55781) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goAst-0003UE-DD for qemu-devel@nongnu.org; Mon, 28 Jan 2019 12:39:47 -0500 Received: by mail-wm1-x344.google.com with SMTP id y139so14805505wmc.5 for ; Mon, 28 Jan 2019 09:39:43 -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=gv/cJrgo9QfUMJI8RUh+VtmAs3wwqwtLhBCdRA/IuRQ=; b=eQ5rBqI+SnOXV+LEdEQkE1ZokKVKcDtKF9tDRwwzDYmysTkJOHtkouWrjMadR2fhQ/ do7ZG4g+FG7AHPUd+KHe3Fj4i+KfLkC1WxqyT4iIVDS0LiYB9LTdYJOTYf9vYUcLhbJd 1OoB6ybSSesSKHbhtTPOT22dvkqu0FVS6Pr8A= 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=gv/cJrgo9QfUMJI8RUh+VtmAs3wwqwtLhBCdRA/IuRQ=; b=Q1bBXGAc7Wod75baDr35CHoZx1zAmuFLH8burWfsZwc/4rGAeBMUVcXtT6TzQ1Yowv bexAk388iPvdDwWK3tIWqXJnS+MPk/IVLufElZyfp3b/tO79VuKCFGqhxCrBQ0EVQmJx FSh7hHve4+JEo8jT5jP9Vd5vCkDDSAhKBNfEVFIFxAK02Ddj6srkuiTmYuJXbB/bCqdB OOYb/ASB5E1eDC6gqoyyW1mojIW0iX3PGUs1VkGy+qyEhCW+/gw04ZV3zOknvlQutHUl Fqgr/2wot8G5xD6hDp8pWBIMI8bqzHt3rmB/QE8622M7EPVbpUkdAeVRqa2kKisIl8m+ 23nw== X-Gm-Message-State: AJcUukf3+twQAoIH8i/8de6+j++CcFe3Lof2mVFaAhHAL6IDUYh6E0hi Qme/dcDAJWGk2G95Va+FQbG5Fg== X-Received: by 2002:a7b:c853:: with SMTP id c19mr16965855wml.61.1548697182963; Mon, 28 Jan 2019 09:39:42 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t5sm86380wmd.15.2019.01.28.09.39.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 09:39:42 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E2DC93E0763; Mon, 28 Jan 2019 17:39:40 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Mon, 28 Jan 2019 17:39:39 +0000 Message-Id: <20190128173940.25813-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190128173940.25813-1-alex.bennee@linaro.org> References: <20190128173940.25813-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::344 Subject: [Qemu-devel] [PATCH v1 3/4] 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: Riku Voipio , qemu-arm@nongnu.org, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , Laurent Vivier 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.17.1 Acked-by: Laurent Vivier diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 4cff9e1a31..e95c162097 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -571,6 +571,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) \