From patchwork Wed Jan 2 18:28:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Szabolcs Nagy X-Patchwork-Id: 1020050 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-98968-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="us2GFzMG"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="AtmQdgQv"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43VKLC5zFlz9rxp for ; Thu, 3 Jan 2019 05:28:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:mime-version; q=dns; s=default; b=dd3l H/Nafb36Qndqv4vUfHslMxbmzaYZQzYJRAY7WVAFT3ej8q8tj7utEASAFzBnyIMU oA8X1wqDXRn/hY4kfW3Nl9ZCRLRqtmhOYlli5mdk41gYK9HEqETlcLXalHocr+ru 43iEaltxp9v+8ohlnw/euJFWAoE1OAht0cuuTdk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:references :in-reply-to:content-type:mime-version; s=default; bh=on3JppZGeR B4jYxs1ILxIYyzgAA=; b=us2GFzMGgyeHabRTPCouzELK/r4d3sFITbJRz4RJT0 8ERxJkw6+/Ssz/fZcoQnQMIt3nv+WUDhKa2gNlZ8vHZEtBmHmVWe03vyXvqRTCyO RaHs7tQ2FYWpaC+5hCRNXuSAUhNaFM4UI4Nkp4qrJ9Qe4TA0NuL2dBRcjrLrQhSs c= Received: (qmail 49346 invoked by alias); 2 Jan 2019 18:28:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 49333 invoked by uid 89); 2 Jan 2019 18:28:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=Never, 577, dit, H*Ad:U*joseph X-HELO: EUR02-HE1-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rmCXFfSyCV3qYelMs/UklqOENgy+if4+tc1/dI4WivU=; b=AtmQdgQvIIJklltGsAEWRXBjtXOqpscsJuqpwcdLunB8L/LGYkowLf+KGKtBoGXqKjybFGGP1EbLVT9wwCOMIt03nSs11Q6AaUzn4JLsgCYDNj3k4csZcQJkZZcyWq87aVEpkqeCdvuleYA1mwUg+sADb1SES4vgbsxxDe5wNbc= From: Szabolcs Nagy To: "libc-alpha@sourceware.org" CC: "Dmitry V. Levin" , nd , Joseph Myers Subject: [PATCH] AArch64: Update dl-procinfo.c with new HWCAP Date: Wed, 2 Jan 2019 18:28:08 +0000 Message-ID: References: <20190101010015.GB29519@altlinux.org> In-Reply-To: <20190101010015.GB29519@altlinux.org> user-agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=Szabolcs.Nagy@arm.com; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) MIME-Version: 1.0 i plan to commit this tomorrow: bits/hwcap.h should be updated together with dl-procinfo.c. 2019-01-02 Szabolcs Nagy * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment. * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT): Update. diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h index 193959fe9b..9a395c597f 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h @@ -20,7 +20,8 @@ # error "Never include directly; use instead." #endif -/* The following must match the kernel's . */ +/* The following must match the kernel's and update the + list together with sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c. */ #define HWCAP_FP (1 << 0) #define HWCAP_ASIMD (1 << 1) #define HWCAP_EVTSTRM (1 << 2) diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c index 6c20d84839..30ee7c8176 100644 --- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c +++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c @@ -57,7 +57,7 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features #endif /* Number of HWCAP bits set. */ -#define _DL_HWCAP_COUNT 28 +#define _DL_HWCAP_COUNT 29 #if !defined PROCINFO_DECL && defined SHARED ._dl_aarch64_cap_flags @@ -69,7 +69,7 @@ PROCINFO_CLASS const char _dl_aarch64_cap_flags[_DL_HWCAP_COUNT][10] = { "fp", "asimd", "evtstrm", "aes", "pmull", "sha1", "sha2", "crc32", "atomics", "fphp", "asimdhp", "cpuid", "asimdrdm", "jscvt", "fcma", "lrcpc", "dcpop", "sha3", "sm3", "sm4", "asimddp", "sha512", "sve", - "asimdfhm", "dit", "uscat", "ilrcpc", "flagm" } + "asimdfhm", "dit", "uscat", "ilrcpc", "flagm", "ssbs" } #endif #if !defined SHARED || defined PROCINFO_DECL ;