mirror of
https://sourceware.org/git/glibc.git
synced 2025-04-19 01:04:13 +03:00
The ld.so diagnostics already prints AT_HWCAP values, but only in hexadecimal. To avoid duplicating the strings, consolidate the hwcap_names from cpu-features.h on a new file, dl-hwcap-info.h (and it also improves the hwcap string description with more values). For future AT_HWCAP3/AT_HWCAP4 extensions, it is just a matter to add them on dl-hwcap-info.c so both ld diagnostics and tunable filtering will parse the new values. Checked on powerpc64le-linux-gnu. Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* Initialize cpu feature data. PowerPC version.
|
|
Copyright (C) 2017-2025 Free Software Foundation, Inc.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef __CPU_FEATURES_POWERPC_H
|
|
# define __CPU_FEATURES_POWERPC_H
|
|
|
|
#include <stdbool.h>
|
|
#include <sys/auxv.h>
|
|
|
|
struct cpu_features
|
|
{
|
|
bool use_cached_memopt;
|
|
unsigned long int hwcap;
|
|
unsigned long int hwcap2;
|
|
unsigned long int hwcap3;
|
|
unsigned long int hwcap4;
|
|
};
|
|
|
|
#endif /* __CPU_FEATURES_H */
|