aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390/s390-64/dl-hwcap-check.h
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2022-04-13 14:36:09 +0200
committerStefan Liebler <stli@linux.ibm.com>2022-04-14 10:37:45 +0200
commit2376944b9e5c0364b9fb473e4d8dabca31b57167 (patch)
tree667c9804b85bc97b8c465f433d965b479d1e8e81 /sysdeps/s390/s390-64/dl-hwcap-check.h
parent535e935a284b2ec96659d1ac40eebf61321f2362 (diff)
downloadglibc-2376944b9e5c0364b9fb473e4d8dabca31b57167.tar
glibc-2376944b9e5c0364b9fb473e4d8dabca31b57167.tar.gz
glibc-2376944b9e5c0364b9fb473e4d8dabca31b57167.tar.bz2
glibc-2376944b9e5c0364b9fb473e4d8dabca31b57167.zip
S390: Add new s390 platform z16.
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)
Diffstat (limited to 'sysdeps/s390/s390-64/dl-hwcap-check.h')
-rw-r--r--sysdeps/s390/s390-64/dl-hwcap-check.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/s390/s390-64/dl-hwcap-check.h b/sysdeps/s390/s390-64/dl-hwcap-check.h
index f769932325..efe204a3f3 100644
--- a/sysdeps/s390/s390-64/dl-hwcap-check.h
+++ b/sysdeps/s390/s390-64/dl-hwcap-check.h
@@ -26,7 +26,11 @@ static inline void
dl_hwcap_check (void)
{
#if defined __ARCH__
-# if GCCMACRO__ARCH__ >= 13
+# if GCCMACRO__ARCH__ >= 14
+ if (!(GLRO(dl_hwcap) & HWCAP_S390_VXRS_PDE2))
+ _dl_fatal_printf ("\
+Fatal glibc error: CPU lacks VXRS_PDE2 support (z16 or later required)\n");
+# elif GCCMACRO__ARCH__ >= 13
if (!(GLRO(dl_hwcap) & HWCAP_S390_VXRS_EXT2))
_dl_fatal_printf ("\
Fatal glibc error: CPU lacks VXRS_EXT2 support (z15 or later required)\n");