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