summary refs log tree commit diff stats
path: root/linux-user/i386/target_elf.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-07-29 11:26:43 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-30 07:04:04 +1000
commiteb727cc45a352ff259c4c2d85456f0412e738d43 (patch)
tree32897003030eae9333da4d3ed011ec0aba90387d /linux-user/i386/target_elf.h
parente6b7635c9a33918c671e1f2ef4b17b5c2f279d66 (diff)
downloadfocaccia-qemu-eb727cc45a352ff259c4c2d85456f0412e738d43.tar.gz
focaccia-qemu-eb727cc45a352ff259c4c2d85456f0412e738d43.zip
linux-user: Rename elf_check_arch
Rename to elf_check_machine to match ELF_MACHINE.
Remove the unnecessary definition for loongarch64.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/i386/target_elf.h')
-rw-r--r--linux-user/i386/target_elf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/i386/target_elf.h b/linux-user/i386/target_elf.h
index c3caad68b9..eafac8f382 100644
--- a/linux-user/i386/target_elf.h
+++ b/linux-user/i386/target_elf.h
@@ -30,7 +30,7 @@ typedef struct target_elf_gregset_t {
 /*
  * This is used to ensure we don't load something for the wrong architecture.
  */
-#define elf_check_arch(x)       ((x) == EM_386 || (x) == EM_486)
+#define elf_check_machine(x)    ((x) == EM_386 || (x) == EM_486)
 
 /*
  * i386 is the only target which supplies AT_SYSINFO for the vdso.