diff options
author | Amrita H S <amritahs@linux.ibm.com> | 2024-03-19 19:08:47 -0500 |
---|---|---|
committer | Peter Bergner <bergner@linux.ibm.com> | 2024-03-20 19:43:40 -0500 |
commit | aad45c8ac30aa1072e54903ce6aead22702f244a (patch) | |
tree | 6708722786c5c053867e37859c279cfad43b9642 /sysdeps/powerpc/dl-procinfo.h | |
parent | ee7f4c54e19738c2c27d3846e1e9b3595c89221f (diff) | |
download | glibc-aad45c8ac30aa1072e54903ce6aead22702f244a.tar.gz glibc-aad45c8ac30aa1072e54903ce6aead22702f244a.tar.xz glibc-aad45c8ac30aa1072e54903ce6aead22702f244a.zip |
powerpc: Placeholder and infrastructure/build support to add Power11 related changes.
The following three changes have been added to provide initial Power11 support. 1. Add the directories to hold Power11 files. 2. Add support to select Power11 libraries based on AT_PLATFORM. 3. Let submachine=power11 be set automatically. Reviewed-by: Florian Weimer <fweimer@redhat.com> Reviewed-by: Peter Bergner <bergner@linux.ibm.com> (cherry picked from commit 1ea051145612f199d8716ecdf78b084b00b5a727)
Diffstat (limited to 'sysdeps/powerpc/dl-procinfo.h')
-rw-r--r-- | sysdeps/powerpc/dl-procinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h index f8cb343877..b36697ba44 100644 --- a/sysdeps/powerpc/dl-procinfo.h +++ b/sysdeps/powerpc/dl-procinfo.h @@ -38,7 +38,7 @@ #define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \ + PPC_FEATURE_HAS_DFP) -#define _DL_PLATFORMS_COUNT 16 +#define _DL_PLATFORMS_COUNT 17 #define _DL_FIRST_PLATFORM 32 /* Mask to filter out platforms. */ @@ -62,6 +62,7 @@ #define PPC_PLATFORM_POWER8 13 #define PPC_PLATFORM_POWER9 14 #define PPC_PLATFORM_POWER10 15 +#define PPC_PLATFORM_POWER11 16 static inline const char * __attribute__ ((unused)) @@ -89,6 +90,11 @@ _dl_string_platform (const char *str) ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER10; str++; } + else if (str[1] == '1') + { + ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER11; + str++; + } else return -1; break; |