mirror of
https://github.com/qemu/qemu.git
synced 2026-05-19 13:44:51 +00:00
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>
This commit is contained in:
@@ -101,6 +101,9 @@ extern unsigned long guest_stack_size;
|
||||
/* Note that Elf32 and Elf64 use uint32_t for e_flags. */
|
||||
const char *get_elf_cpu_model(uint32_t eflags);
|
||||
|
||||
#if defined(TARGET_I386) || defined(TARGET_X86_64)
|
||||
abi_ulong get_elf_hwcap(CPUState *cs);
|
||||
#endif
|
||||
#if defined(TARGET_S390X) || defined(TARGET_AARCH64) || defined(TARGET_ARM)
|
||||
uint32_t get_elf_hwcap(void);
|
||||
const char *elf_hwcap_str(uint32_t bit);
|
||||
|
||||
Reference in New Issue
Block a user