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