powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.
commit3ab9b88e2ac91062b6d493fe32bd101a55006c6a
authorManjunath Matti <mmatti@linux.ibm.com>
Tue, 19 Mar 2024 20:29:48 +0000 (19 15:29 -0500)
committerPeter Bergner <bergner@linux.ibm.com>
Tue, 19 Mar 2024 22:19:27 +0000 (19 17:19 -0500)
treea13cf4a7a73bb6f77748d2bfefedce381591be56
parent3d53d18fc71c5d9ef4773b8bce04d54b80181926
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.

This is an ABI change for GLIBC 2.39.

Suggested-by: Peter Bergner <bergner@linux.ibm.com>
Reviewed-by: Peter Bergner <bergner@linux.ibm.com>
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