From nobody Fri Nov 7 19:50:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548697531561978.75656650087; Mon, 28 Jan 2019 09:45:31 -0800 (PST) Received: from localhost ([127.0.0.1]:36005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goAyN-0006bQ-FX for importer@patchew.org; Mon, 28 Jan 2019 12:45:27 -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) 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) 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-Google-Smtp-Source: ALg8bN7y8lndfEpkmVupEbgfwRY2UGMqUv+FGPk0eUeJrJsL5uDcNOlvo+4cUtYPxINHKwavh+XYPQ== X-Received: by 2002:a7b:c853:: with SMTP id c19mr16965855wml.61.1548697182963; Mon, 28 Jan 2019 09:39:42 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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=20Benn=C3=A9e?= , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C3=A9e Reviewed-by: Richard Henderson Acked-by: Laurent Vivier --- linux-user/elfload.c | 1 + 1 file changed, 1 insertion(+) 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) =20 hwcaps |=3D ARM_HWCAP_A64_FP; hwcaps |=3D ARM_HWCAP_A64_ASIMD; + hwcaps |=3D ARM_HWCAP_A64_CPUID; =20 /* probe for the extra features */ #define GET_FEATURE_ID(feat, hwcap) \ --=20 2.17.1