]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Update AT_HWCAP[2] bits
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 23 Jun 2017 12:10:32 +0000 (09:10 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 23 Jun 2017 12:10:32 +0000 (09:10 -0300)
Linux commit ID a4700a26107241cc7b9ac8528b2c6714ff99983d reserved 2 more
bits for the instructions darn (Deliver a Random Number) and scv (System
Call Vectored).

Linux commit ID 6997e57d693b07289694239e52a10d2f02c3a46f reserved
another bit for internal usage.

* sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_DARN and
PPC_FEATURE2_SCV.
* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add scv
and darn.

ChangeLog
sysdeps/powerpc/bits/hwcap.h
sysdeps/powerpc/dl-procinfo.c

index e495f4cf5f58f6809faf4cadbf8179b21659c5f6..c52002a91419fe1df440351c678c700a0079e6b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-06-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_DARN and
+       PPC_FEATURE2_SCV.
+       * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add scv
+       and darn.
+
 2017-06-23  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
 
        * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S(STRRCHR): Define
index c9daeedfde57b2d4b3f08ae252b4d4f47d01e5b7..dfc71c29bb1176855d2d7c180d251348fccc601f 100644 (file)
@@ -50,6 +50,7 @@
 #define PPC_FEATURE_ARCH_2_06      0x00000100 /* ISA 2.06 */
 #define PPC_FEATURE_HAS_VSX        0x00000080 /* P7 Vector Extension.  */
 #define PPC_FEATURE_PSERIES_PERFMON_COMPAT  0x00000040
+/* Reserved by the kernel.         0x00000004  Do not use.  */
 #define PPC_FEATURE_TRUE_LE        0x00000002
 #define PPC_FEATURE_PPC_LE         0x00000001
 
@@ -69,3 +70,5 @@
 #define PPC_FEATURE2_ARCH_3_00    0x00800000 /* ISA 3.0 */
 #define PPC_FEATURE2_HAS_IEEE128   0x00400000 /* VSX IEEE Binary Float
                                                 128-bit */
+#define PPC_FEATURE2_DARN         0x00200000 /* darn instruction.  */
+#define PPC_FEATURE2_SCV          0x00100000 /* scv syscall.  */
index cd7329b84ea14ff1cd76467565a818ac28513c71..4dac16d39e3010b84349f8b87696f552f5cd1c05 100644 (file)
@@ -62,7 +62,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[64][10]
     "", "", "", "",
     "", "", "", "",
     "", "", "", "",
-    "", "", "ieee128", "arch_3_00",
+    "scv", "darn", "ieee128", "arch_3_00",
     "htm-nosc", "vcrypto", "tar", "isel",
     "ebb", "dscr", "htm", "arch_2_07",
   }