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:23:05 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-28 06:39:25 +1000
commit48004ab0586ba01387efc37e7ada26607a1c183e (patch)
tree6a1ad336fca1b6245ae6d2f32bf881fe529a2487 /linux-user/loader.h
parent184e74b236df9ad42ddbf92011713259cd17caf1 (diff)
downloadfocaccia-qemu-48004ab0586ba01387efc37e7ada26607a1c183e.tar.gz
focaccia-qemu-48004ab0586ba01387efc37e7ada26607a1c183e.zip
linux-user: Move get_elf_hwcap to mips/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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/loader.h b/linux-user/loader.h
index 92b6d41145..04457737dd 100644
--- a/linux-user/loader.h
+++ b/linux-user/loader.h
@@ -103,7 +103,7 @@ 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_LOONGARCH64) || defined(TARGET_MIPS)
 abi_ulong get_elf_hwcap(CPUState *cs);
 abi_ulong get_elf_hwcap2(CPUState *cs);
 #endif