qemu-e2k/linux-user
Peter Maydell 63c1b7de0a linux-user: Report AArch64 hwcap2 fields above bit 31
The AArch64 ELF hwcap2 field is 64 bits, but our get_elf_hwcap2()
works with uint32_t, so it accidentally fails to report any hwcaps
over bit 31.  Use uint64_t here.

The Arm hwcap2 is only 32 bits (because the ELF format makes these
fields be the size of "long" in the ABI), but since it shares the
prototype declaration for get_elf_hwcap2() it is easier to also
expand it to 64 bits.

The only hwcap fields we implement already that are affected by this
are the HBC and MOPS ones, neither of which were implemented in a
previous release, so this doesn't need backporting to older stable
branches.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20231030174000.3792225-3-peter.maydell@linaro.org
2023-11-02 13:36:45 +00:00
..
aarch64 linux-user: Fix guest signal remapping after adjusting SIGABRT 2023-10-31 07:12:40 +09:00
alpha
arm linux-user: Fix guest signal remapping after adjusting SIGABRT 2023-10-31 07:12:40 +09:00
cris
generic
hexagon
hppa linux-user/hppa: Add vdso 2023-10-30 13:41:55 -07:00
i386 linux-user/i386: Add vdso 2023-10-30 13:41:55 -07:00
include
loongarch64 linux-user/loongarch64: Add vdso 2023-10-30 13:41:55 -07:00
m68k
microblaze
mips linux-user/mips: fix abort on integer overflow 2023-10-18 15:32:16 -07:00
mips64
nios2
openrisc
ppc linux-user/ppc: Add vdso 2023-10-30 13:41:56 -07:00
riscv linux-user/riscv: Add vdso 2023-10-30 13:41:55 -07:00
s390x linux-user/s390x: Add vdso 2023-10-30 13:41:56 -07:00
sh4 linux-user/sh4: Fix crashes on signal delivery 2023-10-18 15:32:16 -07:00
sparc target/sparc: Remove sparcv7 cpu features 2023-10-25 01:01:12 -07:00
x86_64 linux-user/x86_64: Add vdso 2023-10-30 13:41:55 -07:00
xtensa
cpu_loop-common.h
elfload.c linux-user: Report AArch64 hwcap2 fields above bit 31 2023-11-02 13:36:45 +00:00
errnos.c.inc
exit.c build: Remove --enable-gprof 2023-10-04 11:03:54 -07:00
fd-trans.c
fd-trans.h
flat.h
flatload.c linux-user: Replace bprm->fd with bprm->src.fd 2023-10-30 13:41:55 -07:00
gen-vdso-elfn.c.inc linux-user/ppc: Add vdso 2023-10-30 13:41:56 -07:00
gen-vdso.c linux-user: Add gen-vdso tool 2023-10-30 13:41:55 -07:00
ioctls.h
linux_loop.h
linuxload.c linux-user: Replace bprm->fd with bprm->src.fd 2023-10-30 13:41:55 -07:00
loader.h linux-user: Report AArch64 hwcap2 fields above bit 31 2023-11-02 13:36:45 +00:00
main.c tcg: Split out tcg init functions to tcg/startup.h 2023-10-04 11:03:54 -07:00
meson.build linux-user/loongarch64: Add vdso 2023-10-30 13:41:55 -07:00
mmap.c target/arm: Move feature test functions to their own header 2023-10-27 11:44:32 +01:00
qemu.h linux-user: Show vdso address in /proc/pid/maps 2023-10-30 13:41:56 -07:00
semihost.c
signal-common.h
signal.c linux-user: Fix guest signal remapping after adjusting SIGABRT 2023-10-30 13:40:35 -07:00
socket.h
strace.c linux-user/strace: Clean up local variable shadowing 2023-09-29 10:07:16 +02:00
strace.h
strace.list
syscall_defs.h
syscall_types.h
syscall.c linux-user: Show vdso address in /proc/pid/maps 2023-10-30 13:41:56 -07:00
thunk.c
trace-events
trace.h
uaccess.c
uname.c
uname.h
user-internals.h
user-mmap.h
vm86.c