|
|
3b386f |
This patch is based on the following commit, with the new Implies
|
|
|
3b386f |
files for POWER10, and the preconfigure changes removed.
|
|
|
3b386f |
|
|
|
3b386f |
commit d2ba3677da7a785556fcd708404d8e049b1c063b
|
|
|
3b386f |
Author: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
|
|
|
3b386f |
Date: Wed Jun 24 18:04:41 2020 -0300
|
|
|
3b386f |
|
|
|
3b386f |
powerpc: Add support for POWER10
|
|
|
3b386f |
|
|
|
3b386f |
1. Add the directories to hold POWER10 files.
|
|
|
3b386f |
|
|
|
3b386f |
2. Add support to select POWER10 libraries based on AT_PLATFORM.
|
|
|
3b386f |
|
|
|
3b386f |
3. Let submachine=power10 be set automatically.
|
|
|
3b386f |
|
|
|
3b386f |
|
|
|
3b386f |
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h
|
|
|
3b386f |
index 3803379ab2303658..3558d6a83ca2a988 100644
|
|
|
3b386f |
--- a/sysdeps/powerpc/dl-procinfo.h
|
|
|
3b386f |
+++ b/sysdeps/powerpc/dl-procinfo.h
|
|
|
3b386f |
@@ -37,7 +37,7 @@
|
|
|
3b386f |
#define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \
|
|
|
3b386f |
+ PPC_FEATURE_HAS_DFP)
|
|
|
3b386f |
|
|
|
3b386f |
-#define _DL_PLATFORMS_COUNT 15
|
|
|
3b386f |
+#define _DL_PLATFORMS_COUNT 16
|
|
|
3b386f |
|
|
|
3b386f |
#define _DL_FIRST_PLATFORM 32
|
|
|
3b386f |
/* Mask to filter out platforms. */
|
|
|
3b386f |
@@ -60,6 +60,7 @@
|
|
|
3b386f |
#define PPC_PLATFORM_PPC476 12
|
|
|
3b386f |
#define PPC_PLATFORM_POWER8 13
|
|
|
3b386f |
#define PPC_PLATFORM_POWER9 14
|
|
|
3b386f |
+#define PPC_PLATFORM_POWER10 15
|
|
|
3b386f |
|
|
|
3b386f |
static inline const char *
|
|
|
3b386f |
__attribute__ ((unused))
|
|
|
3b386f |
@@ -91,6 +92,14 @@ _dl_string_platform (const char *str)
|
|
|
3b386f |
str += 5;
|
|
|
3b386f |
switch (*str)
|
|
|
3b386f |
{
|
|
|
3b386f |
+ case '1':
|
|
|
3b386f |
+ if (str[1] == '0')
|
|
|
3b386f |
+ {
|
|
|
3b386f |
+ ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10;
|
|
|
3b386f |
+ }
|
|
|
3b386f |
+ else
|
|
|
3b386f |
+ return -1;
|
|
|
3b386f |
+ break;
|
|
|
3b386f |
case '4':
|
|
|
3b386f |
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER4;
|
|
|
3b386f |
break;
|