|
|
ce426f |
From 4b4084b99e6553784a53a2ea683cc768c343d63a Mon Sep 17 00:00:00 2001
|
|
|
ce426f |
From: "Ryan S. Arnold" <rsa@linux.vnet.ibm.com>
|
|
|
ce426f |
Date: Mon, 24 Jun 2013 15:33:32 -0500
|
|
|
ce426f |
Subject: [PATCH 37/42] PowerPC: Enable POWER8 platform sans hwcap bits.
|
|
|
ce426f |
(cherry picked from commit
|
|
|
ce426f |
2f063a6e843c788a05667e6d362d229b3b671920)
|
|
|
ce426f |
|
|
|
ce426f |
---
|
|
|
ce426f |
sysdeps/powerpc/dl-procinfo.c | 5 +++--
|
|
|
ce426f |
sysdeps/powerpc/dl-procinfo.h | 6 +++++-
|
|
|
ce426f |
sysdeps/powerpc/powerpc32/power8/Implies | 2 ++
|
|
|
ce426f |
sysdeps/powerpc/powerpc64/power8/Implies | 2 ++
|
|
|
ce426f |
.../unix/sysv/linux/powerpc/powerpc32/power8/Implies | 2 ++
|
|
|
ce426f |
.../unix/sysv/linux/powerpc/powerpc64/power8/Implies | 2 ++
|
|
|
ce426f |
7 files changed, 34 insertions(+), 3 deletions(-)
|
|
|
ce426f |
create mode 100644 sysdeps/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
create mode 100644 sysdeps/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.c glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.c
|
|
|
ce426f |
index 8488799..efab165 100644
|
|
|
ce426f |
--- glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.c
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.c
|
|
|
ce426f |
@@ -67,7 +67,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[25][10]
|
|
|
ce426f |
#if !defined PROCINFO_DECL && defined SHARED
|
|
|
ce426f |
._dl_powerpc_platforms
|
|
|
ce426f |
#else
|
|
|
ce426f |
-PROCINFO_CLASS const char _dl_powerpc_platforms[13][12]
|
|
|
ce426f |
+PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
|
|
|
ce426f |
#endif
|
|
|
ce426f |
#ifndef PROCINFO_DECL
|
|
|
ce426f |
= {
|
|
|
ce426f |
@@ -83,7 +83,8 @@ PROCINFO_CLASS const char _dl_powerpc_platforms[13][12]
|
|
|
ce426f |
[PPC_PLATFORM_PPC405] = "ppc405",
|
|
|
ce426f |
[PPC_PLATFORM_PPC440] = "ppc440",
|
|
|
ce426f |
[PPC_PLATFORM_PPC464] = "ppc464",
|
|
|
ce426f |
- [PPC_PLATFORM_PPC476] = "ppc476"
|
|
|
ce426f |
+ [PPC_PLATFORM_PPC476] = "ppc476",
|
|
|
ce426f |
+ [PPC_PLATFORM_POWER8] = "power8",
|
|
|
ce426f |
}
|
|
|
ce426f |
#endif
|
|
|
ce426f |
#if !defined SHARED || defined PROCINFO_DECL
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h
|
|
|
ce426f |
index 6d904ad..0939dcf 100644
|
|
|
ce426f |
--- glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/powerpc/dl-procinfo.h
|
|
|
ce426f |
@@ -30,7 +30,7 @@
|
|
|
ce426f |
#define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \
|
|
|
ce426f |
+ PPC_FEATURE_HAS_DFP)
|
|
|
ce426f |
|
|
|
ce426f |
-#define _DL_PLATFORMS_COUNT 13
|
|
|
ce426f |
+#define _DL_PLATFORMS_COUNT 14
|
|
|
ce426f |
|
|
|
ce426f |
#define _DL_FIRST_PLATFORM 32
|
|
|
ce426f |
/* Mask to filter out platforms. */
|
|
|
ce426f |
@@ -51,6 +51,7 @@
|
|
|
ce426f |
#define PPC_PLATFORM_PPC440 10
|
|
|
ce426f |
#define PPC_PLATFORM_PPC464 11
|
|
|
ce426f |
#define PPC_PLATFORM_PPC476 12
|
|
|
ce426f |
+#define PPC_PLATFORM_POWER8 13
|
|
|
ce426f |
|
|
|
ce426f |
static inline const char *
|
|
|
ce426f |
__attribute__ ((unused))
|
|
|
ce426f |
@@ -111,6 +112,9 @@ _dl_string_platform (const char *str)
|
|
|
ce426f |
case '7':
|
|
|
ce426f |
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER7;
|
|
|
ce426f |
break;
|
|
|
ce426f |
+ case '8':
|
|
|
ce426f |
+ ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER8;
|
|
|
ce426f |
+ break;
|
|
|
ce426f |
default:
|
|
|
ce426f |
return -1;
|
|
|
ce426f |
}
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power8/Implies glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
new file mode 100644
|
|
|
ce426f |
index 0000000..083f3e9
|
|
|
ce426f |
--- /dev/null
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
@@ -0,0 +1,2 @@
|
|
|
ce426f |
+powerpc/powerpc32/power7/fpu
|
|
|
ce426f |
+powerpc/powerpc32/power7
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power8/Implies glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
new file mode 100644
|
|
|
ce426f |
index 0000000..9a5e3c7
|
|
|
ce426f |
--- /dev/null
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
@@ -0,0 +1,2 @@
|
|
|
ce426f |
+powerpc/powerpc64/power7/fpu
|
|
|
ce426f |
+powerpc/powerpc64/power7
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
new file mode 100644
|
|
|
ce426f |
index 0000000..066dea2
|
|
|
ce426f |
--- /dev/null
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies
|
|
|
ce426f |
@@ -0,0 +1,2 @@
|
|
|
ce426f |
+powerpc/powerpc32/power8/fpu
|
|
|
ce426f |
+powerpc/powerpc32/power8
|
|
|
ce426f |
diff --git glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
new file mode 100644
|
|
|
ce426f |
index 0000000..fad2505
|
|
|
ce426f |
--- /dev/null
|
|
|
ce426f |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies
|
|
|
ce426f |
@@ -0,0 +1,2 @@
|
|
|
ce426f |
+powerpc/powerpc64/power8/fpu
|
|
|
ce426f |
+powerpc/powerpc64/power8
|
|
|
ce426f |
--
|
|
|
ce426f |
1.7.11.7
|
|
|
ce426f |
|