mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
elf: Remove _DL_HWCAP_PLATFORM
Remove the definitions of _DL_HWCAP_PLATFORM as those are not used anymore after removal in elf/dl-cache.c:search_cache(). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@@ -22,9 +22,6 @@
|
|||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
|
||||||
|
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (-1ULL)
|
|
||||||
|
|
||||||
#define _DL_PLATFORMS_COUNT 5
|
#define _DL_PLATFORMS_COUNT 5
|
||||||
|
|
||||||
/* We cannot provide a general printing function. */
|
/* We cannot provide a general printing function. */
|
||||||
|
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (-1ULL)
|
|
||||||
|
|
||||||
#define _DL_PLATFORMS_COUNT 4
|
#define _DL_PLATFORMS_COUNT 4
|
||||||
|
|
||||||
|
@@ -28,9 +28,6 @@
|
|||||||
/* By default there is no important hardware capability. */
|
/* By default there is no important hardware capability. */
|
||||||
#define HWCAP_IMPORTANT (0)
|
#define HWCAP_IMPORTANT (0)
|
||||||
|
|
||||||
/* There're no platforms to filter out. */
|
|
||||||
#define _DL_HWCAP_PLATFORM 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
|
||||||
|
|
||||||
|
@@ -22,9 +22,6 @@
|
|||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
|
||||||
|
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (-1ULL)
|
|
||||||
|
|
||||||
#define _DL_PLATFORMS_COUNT 4
|
#define _DL_PLATFORMS_COUNT 4
|
||||||
|
|
||||||
/* We cannot provide a general printing function. */
|
/* We cannot provide a general printing function. */
|
||||||
|
@@ -41,9 +41,6 @@
|
|||||||
#define _DL_PLATFORMS_COUNT 17
|
#define _DL_PLATFORMS_COUNT 17
|
||||||
|
|
||||||
#define _DL_FIRST_PLATFORM 32
|
#define _DL_FIRST_PLATFORM 32
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (((1ULL << _DL_PLATFORMS_COUNT) - 1) \
|
|
||||||
<< _DL_FIRST_PLATFORM)
|
|
||||||
|
|
||||||
/* Platform bits (relative to _DL_FIRST_PLATFORM). */
|
/* Platform bits (relative to _DL_FIRST_PLATFORM). */
|
||||||
#define PPC_PLATFORM_POWER4 0
|
#define PPC_PLATFORM_POWER4 0
|
||||||
|
@@ -27,9 +27,6 @@ extern const char _dl_s390_cap_flags[_DL_HWCAP_COUNT][9] attribute_hidden;
|
|||||||
|
|
||||||
/* The kernel provides up to 32 capability bits with elf_hwcap. */
|
/* The kernel provides up to 32 capability bits with elf_hwcap. */
|
||||||
#define _DL_FIRST_PLATFORM 32
|
#define _DL_FIRST_PLATFORM 32
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (((1ULL << _DL_PLATFORMS_COUNT) - 1) \
|
|
||||||
<< _DL_FIRST_PLATFORM)
|
|
||||||
|
|
||||||
/* Hardware capability bit numbers are derived directly from the
|
/* Hardware capability bit numbers are derived directly from the
|
||||||
facility indications as stored by the "store facility list" (STFL)
|
facility indications as stored by the "store facility list" (STFL)
|
||||||
|
@@ -57,7 +57,4 @@ _dl_hwcap_string (int idx)
|
|||||||
#define HWCAP_IMPORTANT (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
|
#define HWCAP_IMPORTANT (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
|
||||||
| HWCAP_SPARC_BLKINIT | HWCAP_SPARC_N2)
|
| HWCAP_SPARC_BLKINIT | HWCAP_SPARC_N2)
|
||||||
|
|
||||||
/* There're no platforms to filter out. */
|
|
||||||
#define _DL_HWCAP_PLATFORM 0
|
|
||||||
|
|
||||||
#endif /* dl-procinfo.h */
|
#endif /* dl-procinfo.h */
|
||||||
|
@@ -37,7 +37,4 @@ _dl_hwcap_string (int idx)
|
|||||||
return (unsigned)idx < _DL_HWCAP_COUNT ? GLRO(dl_aarch64_cap_flags)[idx] : "";
|
return (unsigned)idx < _DL_HWCAP_COUNT ? GLRO(dl_aarch64_cap_flags)[idx] : "";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* There're no platforms to filter out. */
|
|
||||||
#define _DL_HWCAP_PLATFORM 0
|
|
||||||
|
|
||||||
#endif /* dl-procinfo.h */
|
#endif /* dl-procinfo.h */
|
||||||
|
@@ -30,9 +30,6 @@
|
|||||||
/* Low 7 bits are allocated in HWCAP2. */
|
/* Low 7 bits are allocated in HWCAP2. */
|
||||||
#define _DL_HWCAP2_LAST 6
|
#define _DL_HWCAP2_LAST 6
|
||||||
|
|
||||||
/* The kernel provides platform data but it is not interesting. */
|
|
||||||
#define _DL_HWCAP_PLATFORM 0
|
|
||||||
|
|
||||||
|
|
||||||
static inline const char *
|
static inline const char *
|
||||||
__attribute__ ((unused))
|
__attribute__ ((unused))
|
||||||
|
@@ -26,8 +26,5 @@
|
|||||||
|
|
||||||
/* Start at 48 to reserve spaces for hardware capabilities. */
|
/* Start at 48 to reserve spaces for hardware capabilities. */
|
||||||
#define _DL_FIRST_PLATFORM 48
|
#define _DL_FIRST_PLATFORM 48
|
||||||
/* Mask to filter out platforms. */
|
|
||||||
#define _DL_HWCAP_PLATFORM (((1ULL << _DL_PLATFORMS_COUNT) - 1) \
|
|
||||||
<< _DL_FIRST_PLATFORM)
|
|
||||||
|
|
||||||
#endif /* dl-procinfo.h */
|
#endif /* dl-procinfo.h */
|
||||||
|
Reference in New Issue
Block a user