S390: Add new s390 platform z16.

System Internals / glibc - Stefan Liebler [linux.ibm.com] - 14 April 2022 08:37 UTC

The new IBM z16 is added to platform string array. The macro _DL_PLATFORMS_COUNT is incremented.

_dl_hwcaps_subdir is extended by "z16" if HWCAP_S390_VXRS_PDE2 is set. HWCAP_S390_NNPA is not tested in _dl_hwcaps_subdirs_active as those instructions may be replaced or removed in future.

tst-glibc-hwcaps.c is extended in order to test z16 via new marker5.

A fatal glibc error is dumped if glibc was build with architecture level set for z16, but run on an older machine. (See dl-hwcap-check.h)

2376944b9e S390: Add new s390 platform z16.
elf/Makefile | 8 ++++++++
elf/tst-glibc-hwcaps-cache.script | 6 ++++++
sysdeps/s390/dl-procinfo.c | 5 +++--
sysdeps/s390/dl-procinfo.h | 2 +-
sysdeps/s390/s390-64/Makefile | 25 +++++++++++++++++++++++--
sysdeps/s390/s390-64/dl-hwcap-check.h | 6 +++++-
sysdeps/s390/s390-64/dl-hwcaps-subdirs.c | 11 +++++++++--
sysdeps/s390/s390-64/tst-glibc-hwcaps.c | 8 ++++++--
8 files changed, 61 insertions(+), 10 deletions(-)

Upstream: sourceware.org


  • Share