]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.
authorManjunath Matti <mmatti@linux.ibm.com>
Tue, 19 Mar 2024 20:29:48 +0000 (15:29 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Wed, 20 Mar 2024 23:09:32 +0000 (18:09 -0500)
commitee7f4c54e19738c2c27d3846e1e9b3595c89221f
tree01fa49f5b8d720ea62de03f1ab9331fb7949cbe7
parent71fcdba577884627c3ee4e43beb915da752efb1f
powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.

This patch adds a new feature for powerpc.  In order to get faster
access to the HWCAP3/HWCAP4 masks, similar to HWCAP/HWCAP2 (i.e. for
implementing __builtin_cpu_supports() in GCC) without the overhead of
reading them from the auxiliary vector, we now reserve space for them
in the TCB.

Suggested-by: Peter Bergner <bergner@linux.ibm.com>
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
(cherry picked from commit 3ab9b88e2ac91062b6d493fe32bd101a55006c6a)
12 files changed:
elf/dl-diagnostics.c
elf/dl-support.c
elf/elf.h
sysdeps/generic/ldsodefs.h
sysdeps/powerpc/dl-procinfo.c
sysdeps/powerpc/dl-procinfo.h
sysdeps/powerpc/hwcapinfo.c
sysdeps/unix/sysv/linux/dl-parse_auxv.h
sysdeps/unix/sysv/linux/dl-sysdep.c
sysdeps/unix/sysv/linux/powerpc/cpu-features.c
sysdeps/unix/sysv/linux/powerpc/cpu-features.h
sysdeps/unix/sysv/linux/powerpc/libc-start.c