summary refs log tree commit diff stats
path: root/linux-user/riscv/target_elf.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-07-27 21:44:02 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-28 06:39:25 +1000
commit50e59ad0b7b1c71e858939504a749bf1a1313e2e (patch)
treea63c44663f9e9d16bda5c62e8816cf2e9b413557 /linux-user/riscv/target_elf.h
parent1d4774b60e3dfdc9295e36c5fa298b457d10db10 (diff)
downloadfocaccia-qemu-50e59ad0b7b1c71e858939504a749bf1a1313e2e.tar.gz
focaccia-qemu-50e59ad0b7b1c71e858939504a749bf1a1313e2e.zip
linux-user: Move get_elf_hwcap to riscv/elfload.c
Change the return type to abi_ulong, and pass in the cpu.
As this is the last instance of get_elf_hwcap to be converted,
remove the ifdef around the declaration in loader.h.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/riscv/target_elf.h')
-rw-r--r--linux-user/riscv/target_elf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-user/riscv/target_elf.h b/linux-user/riscv/target_elf.h
index bfe86105d0..48d9af557b 100644
--- a/linux-user/riscv/target_elf.h
+++ b/linux-user/riscv/target_elf.h
@@ -8,4 +8,6 @@
 #ifndef RISCV_TARGET_ELF_H
 #define RISCV_TARGET_ELF_H
 
+#define HAVE_ELF_HWCAP          1
+
 #endif