powerpc: Add basic support for POWER9 sans hwcap.

This patch adds the minimum changes for supporting the POWER9 processor.
This commit is contained in:
Carlos Eduardo Seo 2015-11-04 19:30:49 -02:00 committed by Tulio Magno Quites Machado Filho
parent 2cf3e1aa74
commit b1f19b8ef1
10 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,16 @@
2015-12-22 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
* sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
platform and feature support for POWER9.
* sysdeps/powerpc/dl-procinfo.h: Likewise.
* sysdeps/powerpc/powerpc32/power9/Implies: New file.
* sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
* sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
* sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
* sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
* sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
* sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
2015-12-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
Harmonize generic stdio-lock support with nptl

View File

@ -75,7 +75,7 @@ PROCINFO_CLASS const char _dl_powerpc_cap_flags[60][10]
#if !defined PROCINFO_DECL && defined SHARED
._dl_powerpc_platforms
#else
PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
PROCINFO_CLASS const char _dl_powerpc_platforms[15][12]
#endif
#ifndef PROCINFO_DECL
= {
@ -93,6 +93,7 @@ PROCINFO_CLASS const char _dl_powerpc_platforms[14][12]
[PPC_PLATFORM_PPC464] = "ppc464",
[PPC_PLATFORM_PPC476] = "ppc476",
[PPC_PLATFORM_POWER8] = "power8",
[PPC_PLATFORM_POWER9] = "power9"
}
#endif
#if !defined SHARED || defined PROCINFO_DECL

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1 @@
powerpc/powerpc64/power8/multiarch