Re: [PATCH 2/3] linux-user: Report AArch64 hwcap2 fields above bit 31

2023-11-02 Thread Philippe Mathieu-Daudé
On 30/10/23 18:39, Peter Maydell wrote: 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 "

[PATCH 2/3] linux-user: Report AArch64 hwcap2 fields above bit 31

2023-10-30 Thread Peter Maydell
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