ce426f
From 2f308f69b40f960729d4358afb1b1effb218b6cb Mon Sep 17 00:00:00 2001
ce426f
From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
ce426f
Date: Tue, 5 Jan 2016 15:13:18 -0200
ce426f
Subject: [PATCH] powerpc: Add hwcap2 bits for POWER9.
ce426f
ce426f
Added hwcap2 bit masks for Power ISA 3.0 and VSX IEEE binary float 128-bit
ce426f
features.
ce426f
ce426f
(cherry picked from commit d2de9ef7ad35341fd6f098f7e84a1128f2027d0c)
ce426f
---
ce426f
 ChangeLog                     | 7 +++++++
ce426f
 sysdeps/powerpc/bits/hwcap.h  | 3 +++
ce426f
 sysdeps/powerpc/dl-procinfo.c | 2 +-
ce426f
 3 files changed, 11 insertions(+), 1 deletion(-)
ce426f
ce426f
diff --git a/ChangeLog b/ChangeLog
ce426f
index cecd77c..565da33 100644
ce426f
diff --git a/sysdeps/powerpc/bits/hwcap.h b/sysdeps/powerpc/bits/hwcap.h
ce426f
index 12554ca..55b37a4 100644
ce426f
--- a/sysdeps/powerpc/bits/hwcap.h
ce426f
+++ b/sysdeps/powerpc/bits/hwcap.h
ce426f
@@ -66,3 +66,6 @@
ce426f
 						    instruction.  */
ce426f
 #define PPC_FEATURE2_HTM_NOSC	   0x01000000 /* Kernel aborts transaction
ce426f
 						 when a syscall is made.  */
ce426f
+#define PPC_FEATURE2_ARCH_3_00	   0x00800000 /* ISA 3.0 */
ce426f
+#define PPC_FEATURE2_HAS_IEEE128   0x00400000 /* VSX IEEE Binary Float
ce426f
+						 128-bit */
ce426f
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
ce426f
index a8df5b8..1bbeb89 100644
ce426f
--- a/sysdeps/powerpc/dl-procinfo.c
ce426f
+++ b/sysdeps/powerpc/dl-procinfo.c
ce426f
@@ -61,7 +61,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
     "", "", "", "",
ce426f
-    "", "", "", "",
ce426f
+    "", "", "ieee128", "arch_3_00",
ce426f
     "htm-nosc", "vcrypto", "tar", "isel",
ce426f
     "ebb", "dscr", "htm", "arch_2_07",
ce426f
   }
ce426f
-- 
ce426f
2.1.0
ce426f