diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-08-08 04:51:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-08-08 04:51:57 +0000 |
commit | 1642331d3066e43daea5a33a6c12db6edf0e34f7 (patch) | |
tree | d57029038bd8f32d03e31e84f7c77d6566b8a5bb /sysdeps/powerpc/dl-procinfo.h | |
parent | 48b9466105cf4bf7012b90356ae097573a23fc5c (diff) | |
download | glibc-1642331d3066e43daea5a33a6c12db6edf0e34f7.tar.gz glibc-1642331d3066e43daea5a33a6c12db6edf0e34f7.tar.xz glibc-1642331d3066e43daea5a33a6c12db6edf0e34f7.zip |
[BZ #6817]
2008-08-01 Steven Munroe <sjmunroe@us.ibm.com> Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> [BZ #6817] * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Added the members 'vsx' and 'arch_2_06'. (_dl_powerpc_platforms): Add the member 'power7'. * sysdeps/powerpc/dl-procinfo.h: Modify _DL_HWCAP_FIRST to reflect the changes required by VSX and ISA 2.06. Modify _DL_PLATFORMS_COUNT to reflect the addition of 'power7'. Defined PPC_PLATFORM_POWER7. (_dl_string_platform): Add support for POWER7. * sysdeps/powerpc/sysdep.h: Define bit masks for VSX capability and ISA 2.06.
Diffstat (limited to 'sysdeps/powerpc/dl-procinfo.h')
-rw-r--r-- | sysdeps/powerpc/dl-procinfo.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysdeps/powerpc/dl-procinfo.h b/sysdeps/powerpc/dl-procinfo.h index 0bf935385a..254195a94c 100644 --- a/sysdeps/powerpc/dl-procinfo.h +++ b/sysdeps/powerpc/dl-procinfo.h @@ -23,15 +23,15 @@ #include <ldsodefs.h> #include <sysdep.h> /* This defines the PPC_FEATURE_* macros. */ -/* There are 20 bits used, but they are bits 12..31. */ -#define _DL_HWCAP_FIRST 9 +/* There are 25 bits used, but they are bits 7..31. */ +#define _DL_HWCAP_FIRST 7 #define _DL_HWCAP_COUNT 32 /* These bits influence library search. */ #define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \ + PPC_FEATURE_HAS_DFP) -#define _DL_PLATFORMS_COUNT 7 +#define _DL_PLATFORMS_COUNT 8 #define _DL_FIRST_PLATFORM 32 /* Mask to filter out platforms. */ @@ -46,6 +46,7 @@ #define PPC_PLATFORM_POWER6 4 #define PPC_PLATFORM_CELL_BE 5 #define PPC_PLATFORM_POWER6X 6 +#define PPC_PLATFORM_POWER7 7 static inline const char * __attribute__ ((unused)) @@ -103,6 +104,9 @@ _dl_string_platform (const char *str) ++str; } break; + case '7': + ret = _DL_FIRST_PLATFORM + PPC_PLATFORM_POWER7; + break; default: return -1; } |