elf: Remove HWCAP_IMPORTANT

Remove the definitions of HWCAP_IMPORTANT after removal of
LD_HWCAP_MASK / tunable glibc.cpu.hwcap_mask.  There HWCAP_IMPORTANT
was used as default value.
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Stefan Liebler 2024-06-07 13:42:44 +02:00
parent ad0aa1f549
commit e260ceb4aa
11 changed files with 0 additions and 44 deletions

View File

@ -233,7 +233,6 @@ _dl_print_diagnostics (char **environ)
{ {
_dl_diagnostics_print_labeled_string ("dl_dst_lib", DL_DST_LIB); _dl_diagnostics_print_labeled_string ("dl_dst_lib", DL_DST_LIB);
_dl_diagnostics_print_labeled_value ("dl_hwcap", GLRO (dl_hwcap)); _dl_diagnostics_print_labeled_value ("dl_hwcap", GLRO (dl_hwcap));
_dl_diagnostics_print_labeled_value ("dl_hwcap_important", HWCAP_IMPORTANT);
_dl_diagnostics_print_labeled_value ("dl_hwcap2", GLRO (dl_hwcap2)); _dl_diagnostics_print_labeled_value ("dl_hwcap2", GLRO (dl_hwcap2));
_dl_diagnostics_print_labeled_value ("dl_hwcap3", GLRO (dl_hwcap3)); _dl_diagnostics_print_labeled_value ("dl_hwcap3", GLRO (dl_hwcap3));
_dl_diagnostics_print_labeled_value ("dl_hwcap4", GLRO (dl_hwcap4)); _dl_diagnostics_print_labeled_value ("dl_hwcap4", GLRO (dl_hwcap4));

View File

@ -27,9 +27,6 @@
/* There are no hardware capabilities defined. */ /* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) "" #define _dl_hwcap_string(idx) ""
/* By default there is no important hardware capability. */
#define HWCAP_IMPORTANT (0)
/* We don't have any hardware capabilities. */ /* We don't have any hardware capabilities. */
#define _DL_HWCAP_COUNT 0 #define _DL_HWCAP_COUNT 0

View File

@ -28,9 +28,6 @@
/* There are no hardware capabilities defined. */ /* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) "" #define _dl_hwcap_string(idx) ""
/* By default there is no important hardware capability. */
#define HWCAP_IMPORTANT (0)
/* We don't have any hardware capabilities. */ /* We don't have any hardware capabilities. */
#define _DL_HWCAP_COUNT 0 #define _DL_HWCAP_COUNT 0

View File

@ -25,9 +25,6 @@
/* There are no hardware capabilities defined. */ /* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) "" #define _dl_hwcap_string(idx) ""
/* By default there is no important hardware capability. */
#define HWCAP_IMPORTANT (0)
/* We don't have any hardware capabilities. */ /* We don't have any hardware capabilities. */
#define _DL_HWCAP_COUNT 0 #define _DL_HWCAP_COUNT 0

View File

@ -27,9 +27,6 @@
/* There are no hardware capabilities defined. */ /* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) "" #define _dl_hwcap_string(idx) ""
/* By default there is no important hardware capability. */
#define HWCAP_IMPORTANT (0)
/* We don't have any hardware capabilities. */ /* We don't have any hardware capabilities. */
#define _DL_HWCAP_COUNT 0 #define _DL_HWCAP_COUNT 0

View File

@ -34,9 +34,6 @@
/* AT_HWCAP4 feature strings follow the AT_HWCAP3 feature strings. */ /* AT_HWCAP4 feature strings follow the AT_HWCAP3 feature strings. */
#define _DL_HWCAP4_OFFSET (_DL_HWCAP3_OFFSET + _DL_HWCAP_SIZE) #define _DL_HWCAP4_OFFSET (_DL_HWCAP3_OFFSET + _DL_HWCAP_SIZE)
/* These bits influence library search. */
#define HWCAP_IMPORTANT (PPC_FEATURE_HAS_ALTIVEC \
+ PPC_FEATURE_HAS_DFP)
#define _DL_FIRST_PLATFORM 32 #define _DL_FIRST_PLATFORM 32

View File

@ -59,11 +59,6 @@ enum
HWCAP_S390_SIE = 1 << 22, HWCAP_S390_SIE = 1 << 22,
}; };
#define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \
| HWCAP_S390_EIMM | HWCAP_S390_DFP \
| HWCAP_S390_VX | HWCAP_S390_VXE \
| HWCAP_S390_VXRS_EXT2)
/* We cannot provide a general printing function. */ /* We cannot provide a general printing function. */
#define _dl_procinfo(type, word) -1 #define _dl_procinfo(type, word) -1

View File

@ -52,9 +52,4 @@ _dl_hwcap_string (int idx)
return GLRO(dl_sparc_cap_flags)[idx]; return GLRO(dl_sparc_cap_flags)[idx];
}; };
#include <bits/wordsize.h>
#define HWCAP_IMPORTANT_V9 (__WORDSIZE == 64 ? 0 : HWCAP_SPARC_V9)
#define HWCAP_IMPORTANT (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
| HWCAP_SPARC_BLKINIT | HWCAP_SPARC_N2)
#endif /* dl-procinfo.h */ #endif /* dl-procinfo.h */

View File

@ -27,9 +27,6 @@
/* We cannot provide a general printing function. */ /* We cannot provide a general printing function. */
#define _dl_procinfo(type, word) -1 #define _dl_procinfo(type, word) -1
/* No additional library search paths. */
#define HWCAP_IMPORTANT HWCAP_ATOMICS
static inline const char * static inline const char *
__attribute__ ((unused)) __attribute__ ((unused))
_dl_hwcap_string (int idx) _dl_hwcap_string (int idx)

View File

@ -70,6 +70,4 @@ _dl_procinfo (unsigned int type, unsigned long int word)
return 0; return 0;
} }
#define HWCAP_IMPORTANT (HWCAP_ARM_VFP | HWCAP_ARM_NEON)
#endif /* dl-procinfo.h */ #endif /* dl-procinfo.h */

View File

@ -18,19 +18,6 @@
#ifndef _DL_HWCAP_H #ifndef _DL_HWCAP_H
#define _DL_HWCAP_H #define _DL_HWCAP_H
#if IS_IN (ldconfig)
/* Since ldconfig processes both i386 and x86-64 libraries, it needs
to cover all hardware capabilities. */
# define HWCAP_IMPORTANT \
(HWCAP_X86_SSE2 | HWCAP_X86_64 | HWCAP_X86_AVX512_1)
#elif defined __x86_64__
/* For 64 bit, only cover x86-64 capabilities. */
# define HWCAP_IMPORTANT (HWCAP_X86_64 | HWCAP_X86_AVX512_1)
#else
/* For 32 bit, only cover i586, i686 and SSE2. */
# define HWCAP_IMPORTANT (HWCAP_X86_SSE2)
#endif
enum enum
{ {
HWCAP_X86_SSE2 = 1 << 0, HWCAP_X86_SSE2 = 1 << 0,