From patchwork Wed Dec 13 04:07:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick McGehearty X-Patchwork-Id: 24902 Received: (qmail 8623 invoked by alias); 13 Dec 2017 04:07:41 -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 8597 invoked by uid 89); 13 Dec 2017 04:07:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=ima, trans X-HELO: userp2120.oracle.com From: Patrick McGehearty To: libc-alpha@sourceware.org Subject: [PATCH 1/4] sparc: support the ADP hw capability. Date: Tue, 12 Dec 2017 23:07:27 -0500 Message-Id: <1513138050-65509-2-git-send-email-patrick.mcgehearty@oracle.com> In-Reply-To: <1513138050-65509-1-git-send-email-patrick.mcgehearty@oracle.com> References: <1513138050-65509-1-git-send-email-patrick.mcgehearty@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8743 signatures=668646 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712130056 From: Jose E. Marchesi This patch adds support for the ADP (also known as adi) hardware capability, as reported by the kernel sparc port when running on M7 machines. Tested in both sparcv9-*-* and sparc64-*-* targets. * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined. * sysdeps/sparc/dl-procinfo.c: Added "adp" to the _dl_sparc_cap_flags array. * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment. --- ChangeLog | 7 +++++++ sysdeps/sparc/bits/hwcap.h | 1 + sysdeps/sparc/dl-procinfo.c | 4 ++-- sysdeps/sparc/dl-procinfo.h | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5ef7d5d..322d56c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2017-12-11 Jose E. Marchesi + + * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined. + * sysdeps/sparc/dl-procinfo.c: Added "adp" to the + _dl_sparc_cap_flags array. + * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment. + 2017-12-11 Paul A. Clarke * sysdeps/ieee754/flt-32/s_cosf.c: New implementation. diff --git a/sysdeps/sparc/bits/hwcap.h b/sysdeps/sparc/bits/hwcap.h index e090723..a9b05a8 100644 --- a/sysdeps/sparc/bits/hwcap.h +++ b/sysdeps/sparc/bits/hwcap.h @@ -48,3 +48,4 @@ #define HWCAP_SPARC_PAUSE 0x01000000 #define HWCAP_SPARC_CBCOND 0x02000000 #define HWCAP_SPARC_CRYPTO 0x04000000 +#define HWCAP_SPARC_ADP 0x08000000 diff --git a/sysdeps/sparc/dl-procinfo.c b/sysdeps/sparc/dl-procinfo.c index 653bdfb..3db59dc 100644 --- a/sysdeps/sparc/dl-procinfo.c +++ b/sysdeps/sparc/dl-procinfo.c @@ -46,13 +46,13 @@ #if !defined PROCINFO_DECL && defined SHARED ._dl_sparc_cap_flags #else -PROCINFO_CLASS const char _dl_sparc_cap_flags[27][11] +PROCINFO_CLASS const char _dl_sparc_cap_flags[28][11] #endif #ifndef PROCINFO_DECL = { "flush", "stbar", "swap", "muldiv", "v9", "ultra3", "v9v", "v9v2", "mul32", "div32", "fsmuld", "v8plus", "popc", "vis", "vis2", "ASIBlkInit", "fmaf", "vis3", "hpc", "random", "trans", "fjfmau", - "ima", "cspare", "pause", "cbcond", "crypto" } + "ima", "cspare", "pause", "cbcond", "crypto", "adp" } #endif #if !defined SHARED || defined PROCINFO_DECL ; diff --git a/sysdeps/sparc/dl-procinfo.h b/sysdeps/sparc/dl-procinfo.h index 456dde6..19bab8c 100644 --- a/sysdeps/sparc/dl-procinfo.h +++ b/sysdeps/sparc/dl-procinfo.h @@ -23,7 +23,7 @@ #include #include -#define _DL_HWCAP_COUNT 27 +#define _DL_HWCAP_COUNT 28 static inline int __attribute__ ((unused))