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