qemu/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
..
2023-10-30 13:41:55 -07:00
2023-10-30 13:41:55 -07:00
2023-10-30 13:41:56 -07:00
2023-10-30 13:41:55 -07:00
2023-10-30 13:41:56 -07:00
2023-10-30 13:41:55 -07:00
2023-10-04 11:03:54 -07:00
2023-10-30 13:41:56 -07:00
2023-10-30 13:41:55 -07:00
2023-10-30 13:41:55 -07:00