diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-29 06:12:01 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:03 +1000 |
| commit | 28c7d60b54d7e6e3afa064ceae7a4786375d8b4b (patch) | |
| tree | e0bd8152b263be440e5990f0cd3bf3a1c5cbb3c8 /linux-user/openrisc/target_elf.h | |
| parent | e06b9c34eaa388e0503426c7831a2db977a472fd (diff) | |
| download | focaccia-qemu-28c7d60b54d7e6e3afa064ceae7a4786375d8b4b.tar.gz focaccia-qemu-28c7d60b54d7e6e3afa064ceae7a4786375d8b4b.zip | |
linux-user: Move elf_core_copy_regs to openrisc/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/openrisc/target_elf.h')
| -rw-r--r-- | linux-user/openrisc/target_elf.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux-user/openrisc/target_elf.h b/linux-user/openrisc/target_elf.h index b34f2ff672..e97bdc11ed 100644 --- a/linux-user/openrisc/target_elf.h +++ b/linux-user/openrisc/target_elf.h @@ -8,4 +8,14 @@ #ifndef OPENRISC_TARGET_ELF_H #define OPENRISC_TARGET_ELF_H +#define HAVE_ELF_CORE_DUMP 1 + +typedef abi_ulong target_elf_greg_t; + +/* See linux kernel arch/openrisc/include/asm/elf.h. */ +#define ELF_NREG 34 /* gprs and pc, sr */ +typedef struct target_elf_gregset_t { + target_elf_greg_t regs[ELF_NREG]; +} target_elf_gregset_t; + #endif |