Recognize new sparc hwcap bits.

* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
	HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
	* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
	* sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
	entries.
This commit is contained in:
David S. Miller 2012-09-05 17:59:16 -07:00
parent 430d6ce62a
commit ff04dda46d
4 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,12 @@
* sysdeps/sparc/fpu/libm-test-ulps: Update.
* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
* sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
entries.
2012-09-05 Alexandre Oliva <aoliva@redhat.com>
* malloc/arena.c: Fold copyright years.

View File

@ -45,3 +45,6 @@
#define HWCAP_SPARC_IMA 0x00400000
#define HWCAP_SPARC_ASI_CACHE_SPARING \
0x00800000
#define HWCAP_SPARC_PAUSE 0x01000000
#define HWCAP_SPARC_CBCOND 0x02000000
#define HWCAP_SPARC_CRYPTO 0x04000000

View File

@ -46,13 +46,13 @@
#if !defined PROCINFO_DECL && defined SHARED
._dl_sparc_cap_flags
#else
PROCINFO_CLASS const char _dl_sparc_cap_flags[24][11]
PROCINFO_CLASS const char _dl_sparc_cap_flags[27][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" }
"ima", "cspare", "pause", "cbcond", "crypto" }
#endif
#if !defined SHARED || defined PROCINFO_DECL
;

View File

@ -24,7 +24,7 @@
#include <ldsodefs.h>
#include <sysdep.h>
#define _DL_HWCAP_COUNT 24
#define _DL_HWCAP_COUNT 27
static inline int
__attribute__ ((unused))