diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-27 21:39:23 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 1d4774b60e3dfdc9295e36c5fa298b457d10db10 (patch) | |
| tree | 1eb180823ef059c2915beecd4b414cd3771f8282 /linux-user/loader.h | |
| parent | 92c9983c06fa0a55f120c71dda03e38d5220fccc (diff) | |
| download | focaccia-qemu-1d4774b60e3dfdc9295e36c5fa298b457d10db10.tar.gz focaccia-qemu-1d4774b60e3dfdc9295e36c5fa298b457d10db10.zip | |
linux-user: Move hwcap functions to s390x/elfload.c
For get_elf_hwcap, change the return type to abi_ulong and pass in the cpu. 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 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-user/loader.h b/linux-user/loader.h index d8a9399807..c14e69f551 100644 --- a/linux-user/loader.h +++ b/linux-user/loader.h @@ -104,13 +104,10 @@ const char *get_elf_cpu_model(uint32_t eflags); #if defined(TARGET_I386) || defined(TARGET_X86_64) || defined(TARGET_ARM) \ || defined(TARGET_SPARC) || defined(TARGET_PPC) \ || defined(TARGET_LOONGARCH64) || defined(TARGET_MIPS) \ - || defined(TARGET_SH4) + || defined(TARGET_SH4) || defined(TARGET_S390X) abi_ulong get_elf_hwcap(CPUState *cs); abi_ulong get_elf_hwcap2(CPUState *cs); #endif -#if defined(TARGET_S390X) -uint32_t get_elf_hwcap(void); -#endif const char *elf_hwcap_str(uint32_t bit); const char *elf_hwcap2_str(uint32_t bit); |