linux-user/elfload.c: Correction to HWCAP2 accessor
get_elf_hwcap was used when get_elf_hwcap2 should have been.
Cc: qemu-stable@nongnu.org
Fixes: fcac98d0ba ("linux-user: Remove ELF_HWCAP2")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3259
Signed-off-by: Jim MacArthur <jim.macarthur@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260106-fix-hwcap2-sve2-v1-1-1d70dff63370@linaro.org>
(cherry picked from commit c333f9c4ee212297f3b9a8a6ef62396a63c48e61)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
e71e02caa7
commit
86ce6e0773
1 changed files with 1 additions and 1 deletions
|
|
@ -708,7 +708,7 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc,
|
|||
NEW_AUX_ENT(AT_EXECFN, info->file_string);
|
||||
|
||||
if (HAVE_ELF_HWCAP2) {
|
||||
NEW_AUX_ENT(AT_HWCAP2, get_elf_hwcap(thread_cpu));
|
||||
NEW_AUX_ENT(AT_HWCAP2, get_elf_hwcap2(thread_cpu));
|
||||
}
|
||||
if (u_base_platform) {
|
||||
NEW_AUX_ENT(AT_BASE_PLATFORM, u_base_platform);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue