summary refs log tree commit diff stats
path: root/linux-user/microblaze/target_elf.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-07-29 06:06:03 -1000
committerRichard Henderson <richard.henderson@linaro.org>2025-08-30 07:04:03 +1000
commite06b9c34eaa388e0503426c7831a2db977a472fd (patch)
tree889f4a7c73821c6f0b4d620f4af5b741e9d37ab2 /linux-user/microblaze/target_elf.h
parenta8081da18de8f3558b593e9c1ff12b9319c1d892 (diff)
downloadfocaccia-qemu-e06b9c34eaa388e0503426c7831a2db977a472fd.tar.gz
focaccia-qemu-e06b9c34eaa388e0503426c7831a2db977a472fd.zip
linux-user: Move elf_core_copy_regs to microblaze/elfload.c
Move elf_core_copy_regs to elfload.c.
Move HAVE_ELF_CORE_DUMP, ELF_NREGS, target_elf_gregset_t to target_elf.h.
For now, duplicate the definitions of target_elf_greg_t and tswapreg.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/microblaze/target_elf.h')
-rw-r--r--linux-user/microblaze/target_elf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/microblaze/target_elf.h b/linux-user/microblaze/target_elf.h
index bfe2997fd2..cc5cc0477e 100644
--- a/linux-user/microblaze/target_elf.h
+++ b/linux-user/microblaze/target_elf.h
@@ -8,4 +8,13 @@
 #ifndef MICROBLAZE_TARGET_ELF_H
 #define MICROBLAZE_TARGET_ELF_H
 
+#define HAVE_ELF_CORE_DUMP      1
+
+typedef abi_ulong target_elf_greg_t;
+
+#define ELF_NREG                38
+typedef struct target_elf_gregset_t {
+    target_elf_greg_t regs[ELF_NREG];
+} target_elf_gregset_t;
+
 #endif