diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-29 05:55:56 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:03 +1000 |
| commit | a67e20d629a849d9d9d5ef527963462cd0718e78 (patch) | |
| tree | f3f3afc0616ab634592d2d98bd3d6159172232c4 /linux-user/ppc/target_elf.h | |
| parent | b71b68b233dd828960e57702580a97b11f3fd26f (diff) | |
| download | focaccia-qemu-a67e20d629a849d9d9d5ef527963462cd0718e78.tar.gz focaccia-qemu-a67e20d629a849d9d9d5ef527963462cd0718e78.zip | |
linux-user: Move elf_core_copy_regs to ppc/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/ppc/target_elf.h')
| -rw-r--r-- | linux-user/ppc/target_elf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/linux-user/ppc/target_elf.h b/linux-user/ppc/target_elf.h index 4203a89d66..72615553ea 100644 --- a/linux-user/ppc/target_elf.h +++ b/linux-user/ppc/target_elf.h @@ -10,5 +10,14 @@ #define HAVE_ELF_HWCAP 1 #define HAVE_ELF_HWCAP2 1 +#define HAVE_ELF_CORE_DUMP 1 + +typedef abi_ulong target_elf_greg_t; + +/* See linux kernel: arch/powerpc/include/asm/elf.h. */ +#define ELF_NREG 48 +typedef struct target_elf_gregset_t { + target_elf_greg_t regs[ELF_NREG]; +} target_elf_gregset_t; #endif |