sparc: support the ADP hw capability

System Internals / glibc - Jose E. Marchesi [oracle.com] - 14 December 2017 10:47 EST

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.

bfb7bf2273 sparc: support the ADP hw capability
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(-)

Upstream: sourceware.org


  • Share