Blame SOURCES/glibc-rh1385004-8.patch

147e83
From c2b54e66e194405a1ff062bb442ede9a8c4b913a Mon Sep 17 00:00:00 2001
147e83
From: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
147e83
Date: Wed, 4 Nov 2015 19:30:49 -0200
147e83
Subject: [PATCH] powerpc: Add basic support for POWER9 sans hwcap.
147e83
147e83
This patch adds the minimum changes for supporting the POWER9 processor.
147e83
147e83
(cherry picked from commit b1f19b8ef1003f202424ca222003a18b880bf914)
147e83
---
147e83
 ChangeLog                                              | 13 +++++++++++++
147e83
 sysdeps/powerpc/dl-procinfo.c                          |  3 ++-
147e83
 sysdeps/powerpc/dl-procinfo.h                          |  6 +++++-
147e83
 sysdeps/powerpc/powerpc32/power9/Implies               |  2 ++
147e83
 sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies |  1 +
147e83
 sysdeps/powerpc/powerpc32/power9/multiarch/Implies     |  1 +
147e83
 sysdeps/powerpc/powerpc64/power9/Implies               |  2 ++
147e83
 sysdeps/powerpc/powerpc64/power9/fpu/Implies           |  2 ++
147e83
 sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies |  1 +
147e83
 sysdeps/powerpc/powerpc64/power9/multiarch/Implies     |  1 +
147e83
 10 files changed, 30 insertions(+), 2 deletions(-)
147e83
 create mode 100644 sysdeps/powerpc/powerpc32/power9/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc32/power9/multiarch/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc64/power9/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc64/power9/fpu/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies
147e83
 create mode 100644 sysdeps/powerpc/powerpc64/power9/multiarch/Implies
147e83
147e83
diff --git a/ChangeLog b/ChangeLog
147e83
index 079da2a..cecd77c 100644
147e83
diff --git a/sysdeps/powerpc/dl-procinfo.c b/sysdeps/powerpc/dl-procinfo.c
147e83
index 770c1f3..a8df5b8 100644
147e83
--- a/sysdeps/powerpc/dl-procinfo.c
147e83
+++ b/sysdeps/powerpc/dl-procinfo.c
147e83
@@ -75,7 +75,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
147e83
 #if !defined PROCINFO_DECL && defined SHARED
147e83
   ._dl_powerpc_platforms
147e83
 #else
147e83
-PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
147e83
+PROCINFO_CLASS const char _dl_powerpc_platforms[15][12]
147e83
 #endif
147e83
 #ifndef PROCINFO_DECL
147e83
 = {
147e83
@@ -93,6 +93,7 @@ PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
147e83
     [PPC_PLATFORM_PPC464] = "ppc464",
147e83
     [PPC_PLATFORM_PPC476] = "ppc476",
147e83
     [PPC_PLATFORM_POWER8] = "power8",
147e83
+    [PPC_PLATFORM_POWER9] = "power9"
147e83
   }
147e83
 #endif
147e83
 #if !defined SHARED || defined PROCINFO_DECL
147e83
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h
147e83
index 36873cf..407149b 100644
147e83
--- a/sysdeps/powerpc/dl-procinfo.h
147e83
+++ b/sysdeps/powerpc/dl-procinfo.h
147e83
@@ -40,7 +40,7 @@
147e83
 #define HWCAP_IMPORTANT		(PPC_FEATURE_HAS_ALTIVEC \
147e83
 				+ PPC_FEATURE_HAS_DFP)
147e83
 
147e83
-#define _DL_PLATFORMS_COUNT	14
147e83
+#define _DL_PLATFORMS_COUNT	15
147e83
 
147e83
 #define _DL_FIRST_PLATFORM	32
147e83
 /* Mask to filter out platforms.  */
147e83
@@ -62,6 +62,7 @@
147e83
 #define PPC_PLATFORM_PPC464		11
147e83
 #define PPC_PLATFORM_PPC476		12
147e83
 #define PPC_PLATFORM_POWER8		13
147e83
+#define PPC_PLATFORM_POWER9		14
147e83
 
147e83
 static inline const char *
147e83
 __attribute__ ((unused))
147e83
@@ -125,6 +126,9 @@ _dl_string_platform (const char *str)
147e83
 	case '8':
147e83
 	  ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER8;
147e83
 	  break;
147e83
+	case '9':
147e83
+	  ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER9;
147e83
+	  break;
147e83
 	default:
147e83
 	  return -1;
147e83
 	}
147e83
diff --git a/sysdeps/powerpc/powerpc32/power9/Implies b/sysdeps/powerpc/powerpc32/power9/Implies
147e83
new file mode 100644
147e83
index 0000000..066dea2
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc32/power9/Implies
147e83
@@ -0,0 +1,2 @@
147e83
+powerpc/powerpc32/power8/fpu
147e83
+powerpc/powerpc32/power8
147e83
diff --git a/sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies b/sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies
147e83
new file mode 100644
147e83
index 0000000..4393b56
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies
147e83
@@ -0,0 +1 @@
147e83
+powerpc/powerpc32/power8/fpu/multiarch
147e83
diff --git a/sysdeps/powerpc/powerpc32/power9/multiarch/Implies b/sysdeps/powerpc/powerpc32/power9/multiarch/Implies
147e83
new file mode 100644
147e83
index 0000000..4393b56
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc32/power9/multiarch/Implies
147e83
@@ -0,0 +1 @@
147e83
+powerpc/powerpc32/power8/fpu/multiarch
147e83
diff --git a/sysdeps/powerpc/powerpc64/power9/Implies b/sysdeps/powerpc/powerpc64/power9/Implies
147e83
new file mode 100644
147e83
index 0000000..fad2505
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc64/power9/Implies
147e83
@@ -0,0 +1,2 @@
147e83
+powerpc/powerpc64/power8/fpu
147e83
+powerpc/powerpc64/power8
147e83
diff --git a/sysdeps/powerpc/powerpc64/power9/fpu/Implies b/sysdeps/powerpc/powerpc64/power9/fpu/Implies
147e83
new file mode 100644
147e83
index 0000000..fad2505
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc64/power9/fpu/Implies
147e83
@@ -0,0 +1,2 @@
147e83
+powerpc/powerpc64/power8/fpu
147e83
+powerpc/powerpc64/power8
147e83
diff --git a/sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies b/sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies
147e83
new file mode 100644
147e83
index 0000000..f11e1bd
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies
147e83
@@ -0,0 +1 @@
147e83
+powerpc/powerpc64/power8/fpu/multiarch
147e83
diff --git a/sysdeps/powerpc/powerpc64/power9/multiarch/Implies b/sysdeps/powerpc/powerpc64/power9/multiarch/Implies
147e83
new file mode 100644
147e83
index 0000000..dd6bca4
147e83
--- /dev/null
147e83
+++ b/sysdeps/powerpc/powerpc64/power9/multiarch/Implies
147e83
@@ -0,0 +1 @@
147e83
+powerpc/powerpc64/power8/multiarch
147e83
-- 
147e83
2.1.0
147e83