]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
S390: Add new hwcap values for new cpu architecture arch13.
authorStefan Liebler <stli@linux.ibm.com>
Fri, 22 Mar 2019 10:14:07 +0000 (11:14 +0100)
committerStefan Liebler <stli@linux.ibm.com>
Fri, 22 Mar 2019 10:14:07 +0000 (11:14 +0100)
The new hwcap values indicate support for:
-"Vector-Enhancements Facility 2" (tag "vxe2", hwcap 2^15)
-"Vector-Packed-Decimal-Enhancement Facility" (tag "vxp", hwcap 2^16)
-"Enhanced-Sort Facility" (tag "sort", hwcap 2^17)
-"Deflate-Conversion Facility" (tag "dflt", hwcap 2^18)

The vxe2 hwcap is also marked as important hwcap.

ChangeLog:

* sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
Add vxe2, vxp, dflt, sort flags.
* sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
capabilities.
(HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
* sysdeps/unix/sysv/linux/s390/bits/hwcap.h
(HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
HWCAP_S390_DFLT): Define.

ChangeLog
sysdeps/s390/dl-procinfo.c
sysdeps/s390/dl-procinfo.h
sysdeps/unix/sysv/linux/s390/bits/hwcap.h

index f0ebd06b3688ada0e85b981f0fcbd451deef79ee..55b06adbbf29fe2ad56f687c7f4b2c60a7506427 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
+
+       * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
+       Add vxe2, vxp, dflt, sort flags.
+       * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
+       HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
+       capabilities.
+       (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
+       * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
+       (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
+       HWCAP_S390_DFLT): Define.
+
 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
 
        [BZ #24372]
index 8f581c19825aa6498a37fe290b6a7068befa0ca5..44c99018000abf444cebc898f6f62537d631b437 100644 (file)
 #if !defined PROCINFO_DECL && defined SHARED
   ._dl_s390_cap_flags
 #else
-PROCINFO_CLASS const char _dl_s390_cap_flags[15][9]
+PROCINFO_CLASS const char _dl_s390_cap_flags[19][9]
 #endif
 #ifndef PROCINFO_DECL
 = {
      "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3eh",
-     "highgprs", "te", "vx", "vxd", "vxe", "gs"
+     "highgprs", "te", "vx", "vxd", "vxe", "gs", "vxe2", "vxp", "sort", "dflt"
   }
 #endif
 #if !defined SHARED || defined PROCINFO_DECL
index 99697ae64963ae3eb40b12a4393e8474b98e2674..3b1f6a642bbf21f3c5808462ab7d4ee511fc947b 100644 (file)
@@ -21,7 +21,7 @@
 #define _DL_PROCINFO_H 1
 #include <ldsodefs.h>
 
-#define _DL_HWCAP_COUNT 15
+#define _DL_HWCAP_COUNT 19
 
 #define _DL_PLATFORMS_COUNT    9
 
@@ -54,11 +54,16 @@ enum
   HWCAP_S390_VXD = 1 << 12,
   HWCAP_S390_VXE = 1 << 13,
   HWCAP_S390_GS = 1 << 14,
+  HWCAP_S390_VXRS_EXT2 = 1 << 15,
+  HWCAP_S390_VXRS_PDE = 1 << 16,
+  HWCAP_S390_SORT = 1 << 17,
+  HWCAP_S390_DFLT = 1 << 18,
 };
 
 #define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
                         | HWCAP_S390_EIMM | HWCAP_S390_DFP  \
-                        | HWCAP_S390_VX | HWCAP_S390_VXE)
+                        | HWCAP_S390_VX | HWCAP_S390_VXE    \
+                        | HWCAP_S390_VXRS_EXT2)
 
 /* We cannot provide a general printing function.  */
 #define _dl_procinfo(type, word) -1
index 60c38074c450d349fd0ec43a3ceaa45aa9308284..3608bea25c334a1fd0e4913a512c7f4476d1ec40 100644 (file)
@@ -39,3 +39,7 @@
 #define HWCAP_S390_VXD          4096
 #define HWCAP_S390_VXE          8192
 #define HWCAP_S390_GS           16384
+#define HWCAP_S390_VXRS_EXT2    32768
+#define HWCAP_S390_VXRS_PDE     65536
+#define HWCAP_S390_SORT         131072
+#define HWCAP_S390_DFLT         262144