summary refs log tree commit diff stats
path: root/linux-user/loader.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-07-27 21:03:12 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-28 06:39:25 +1000
commite0f62c5a5b5c80d0a6b163a8113e5938b0b40d54 (patch)
tree0e68164691b37e59b9ed869828838d58ea9ef824 /linux-user/loader.h
parent2d0687a514c63956de6215978acdda4f55c190dd (diff)
downloadfocaccia-qemu-e0f62c5a5b5c80d0a6b163a8113e5938b0b40d54.tar.gz
focaccia-qemu-e0f62c5a5b5c80d0a6b163a8113e5938b0b40d54.zip
linux-user: Move get_elf_hwcap to sparc/elfload.c
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/loader.h b/linux-user/loader.h
index 151a06f5db..2c8414e0e5 100644
--- a/linux-user/loader.h
+++ b/linux-user/loader.h
@@ -101,7 +101,8 @@ 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) || defined(TARGET_ARM)
+#if defined(TARGET_I386) || defined(TARGET_X86_64) || defined(TARGET_ARM) \
+    || defined(TARGET_SPARC)
 abi_ulong get_elf_hwcap(CPUState *cs);
 abi_ulong get_elf_hwcap2(CPUState *cs);
 #endif