diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-27 20:52:01 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 2d0687a514c63956de6215978acdda4f55c190dd (patch) | |
| tree | adf7f27b02ddbaf7af260dfe51769bfce0212b5a /linux-user/loader.h | |
| parent | 39476538942f0ae1eff5e03f08399ef1eeca0cc0 (diff) | |
| download | focaccia-qemu-2d0687a514c63956de6215978acdda4f55c190dd.tar.gz focaccia-qemu-2d0687a514c63956de6215978acdda4f55c190dd.zip | |
linux-user: Move hwcap functions to {arm,aarch64}/elfload.c
For get_elf_hwcap and get_elf_hwcap2, change the return type to abi_ulong, and pass in the cpu. We must do these targets at the same time because of the ifdef dependency between TARGET_AARCH64 and TARGET_ARM. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/loader.h')
| -rw-r--r-- | linux-user/loader.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/linux-user/loader.h b/linux-user/loader.h index 457bb36daa..151a06f5db 100644 --- a/linux-user/loader.h +++ b/linux-user/loader.h @@ -101,16 +101,14 @@ 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) +#if defined(TARGET_I386) || defined(TARGET_X86_64) || defined(TARGET_ARM) abi_ulong get_elf_hwcap(CPUState *cs); +abi_ulong get_elf_hwcap2(CPUState *cs); #endif -#if defined(TARGET_S390X) || defined(TARGET_AARCH64) || defined(TARGET_ARM) +#if defined(TARGET_S390X) uint32_t get_elf_hwcap(void); -const char *elf_hwcap_str(uint32_t bit); #endif -#if defined(TARGET_AARCH64) || defined(TARGET_ARM) -uint64_t get_elf_hwcap2(void); +const char *elf_hwcap_str(uint32_t bit); const char *elf_hwcap2_str(uint32_t bit); -#endif #endif /* LINUX_USER_LOADER_H */ |