PowerPC: Enable POWER8 platform sans hwcap bits.

This commit is contained in:
Ryan S. Arnold 2013-06-24 15:33:32 -05:00
parent a74ca98fdd
commit 2f063a6e84
7 changed files with 34 additions and 3 deletions

View File

@ -1,3 +1,21 @@
2013-06-24 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
entry mapped to PPC_PLATFORM_POWER8.
* sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
POWER8.
(PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
(_dl_string_platform): Add case for exporting platform position for
POWER8.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
search path to sysdeps/powerpc/powerpc32/power8 directory.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
search path to sysdeps/powerpc/powerpc64/power8 directory.
* sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
power7 directories.
* sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
power7 directories.
2013-06-24 Siddhesh Poyarekar <siddhesh@redhat.com>
* INSTALL: Regenerate.

View File

@ -67,7 +67,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[25][10]
#if !defined PROCINFO_DECL && defined SHARED
._dl_powerpc_platforms
#else
PROCINFO_CLASS const char _dl_powerpc_platforms[13][12]
PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
#endif
#ifndef PROCINFO_DECL
= {
@ -83,7 +83,8 @@ PROCINFO_CLASS const char _dl_powerpc_platforms[13][12]
[PPC_PLATFORM_PPC405] = "ppc405",
[PPC_PLATFORM_PPC440] = "ppc440",
[PPC_PLATFORM_PPC464] = "ppc464",
[PPC_PLATFORM_PPC476] = "ppc476"
[PPC_PLATFORM_PPC476] = "ppc476",
[PPC_PLATFORM_POWER8] = "power8",
}
#endif
#if !defined SHARED || defined PROCINFO_DECL

View File

@ -30,7 +30,7 @@
#define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \
+ PPC_FEATURE_HAS_DFP)
#define _DL_PLATFORMS_COUNT 13
#define _DL_PLATFORMS_COUNT 14
#define _DL_FIRST_PLATFORM 32
/* Mask to filter out platforms. */
@ -51,6 +51,7 @@
#define PPC_PLATFORM_PPC440 10
#define PPC_PLATFORM_PPC464 11
#define PPC_PLATFORM_PPC476 12
#define PPC_PLATFORM_POWER8 13
static inline const char *
__attribute__ ((unused))
@ -111,6 +112,9 @@ _dl_string_platform (const char *str)
case '7':
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER7;
break;
case '8':
ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER8;
break;
default:
return -1;
}

View File

@ -0,0 +1,2 @@
powerpc/powerpc32/power7/fpu
powerpc/powerpc32/power7

View File

@ -0,0 +1,2 @@
powerpc/powerpc64/power7/fpu
powerpc/powerpc64/power7

View File

@ -0,0 +1,2 @@
powerpc/powerpc32/power8/fpu
powerpc/powerpc32/power8

View File

@ -0,0 +1,2 @@
powerpc/powerpc64/power8/fpu
powerpc/powerpc64/power8