]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Move get_elf_hwcap to {i386,x86_64}/elfload.c
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 28 Jul 2025 06:34:19 +0000 (20:34 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Aug 2025 20:39:25 +0000 (06:39 +1000)
commit39476538942f0ae1eff5e03f08399ef1eeca0cc0
tree6a96d28f701e965e353df59348d8e9a3e4d30ec4
parentaf880af8d4624b619c9d44ff5d27440ae064f99a
linux-user: Move get_elf_hwcap to {i386,x86_64}/elfload.c

Change the return type to abi_ulong, and pass in the cpu.
Duplicate the one line function between i386 and x86_64,
as most other additions to elfload.c won't be common.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c
linux-user/i386/elfload.c
linux-user/i386/target_elf.h
linux-user/loader.h
linux-user/x86_64/elfload.c
linux-user/x86_64/target_elf.h