diff options
Diffstat (limited to 'sysdeps/s390/s390-64/dl-hwcaps-subdirs.c')
-rw-r--r-- | sysdeps/s390/s390-64/dl-hwcaps-subdirs.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sysdeps/s390/s390-64/dl-hwcaps-subdirs.c b/sysdeps/s390/s390-64/dl-hwcaps-subdirs.c index 9447a6cf4e..39f4948152 100644 --- a/sysdeps/s390/s390-64/dl-hwcaps-subdirs.c +++ b/sysdeps/s390/s390-64/dl-hwcaps-subdirs.c @@ -19,8 +19,8 @@ #include <dl-hwcaps.h> #include <ldsodefs.h> -const char _dl_hwcaps_subdirs[] = "z15:z14:z13"; -enum { subdirs_count = 3 }; /* Number of components in _dl_hwcaps_subdirs. */ +const char _dl_hwcaps_subdirs[] = "z16:z15:z14:z13"; +enum { subdirs_count = 4 }; /* Number of components in _dl_hwcaps_subdirs. */ uint32_t _dl_hwcaps_subdirs_active (void) @@ -50,5 +50,12 @@ _dl_hwcaps_subdirs_active (void) return _dl_hwcaps_subdirs_build_bitmask (subdirs_count, active); ++active; + /* z16. + Note: We do not list HWCAP_S390_NNPA here as, according to the Principles of + Operation, those instructions may be replaced or removed in future. */ + if (!(GLRO (dl_hwcap) & HWCAP_S390_VXRS_PDE2)) + return _dl_hwcaps_subdirs_build_bitmask (subdirs_count, active); + ++active; + return _dl_hwcaps_subdirs_build_bitmask (subdirs_count, active); } |