about summary refs log tree commit diff
path: root/sysdeps/sparc/dl-procinfo.c
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2017-12-13 18:01:21 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-12-14 08:47:07 -0200
commitbfb7bf227331e682e35ccbc630ecd66127bea538 (patch)
tree5690e4e5c887c910dc69d102286b48699c6bf475 /sysdeps/sparc/dl-procinfo.c
parent2bce01ebbaf8db52ba4a5635eb5744f989cdbf69 (diff)
downloadglibc-bfb7bf227331e682e35ccbc630ecd66127bea538.tar.gz
glibc-bfb7bf227331e682e35ccbc630ecd66127bea538.tar.xz
glibc-bfb7bf227331e682e35ccbc630ecd66127bea538.zip
sparc: support the ADP hw capability
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.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/sparc/dl-procinfo.c')
-rw-r--r--sysdeps/sparc/dl-procinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/sparc/dl-procinfo.c b/sysdeps/sparc/dl-procinfo.c
index 653bdfb546..3db59dc416 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
 ;