diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 12:09:26 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:04 +1000 |
| commit | 611dd00a45860027f51281fc31e6428aefc8a003 (patch) | |
| tree | b134b136bf009e62a7223c8f73f178255111ffa5 /linux-user/openrisc/target_elf.h | |
| parent | 7a4512db0a52b5005999f839cec934a77f32437b (diff) | |
| download | focaccia-qemu-611dd00a45860027f51281fc31e6428aefc8a003.tar.gz focaccia-qemu-611dd00a45860027f51281fc31e6428aefc8a003.zip | |
linux-user/openrisc: Expand target_elf_gregset_t
Make use of the fact that target_elf_gregset_t is a proper structure. Drop ELF_NREG, 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 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/linux-user/openrisc/target_elf.h b/linux-user/openrisc/target_elf.h index e97bdc11ed..ad80e4b41a 100644 --- a/linux-user/openrisc/target_elf.h +++ b/linux-user/openrisc/target_elf.h @@ -8,14 +8,16 @@ #ifndef OPENRISC_TARGET_ELF_H #define OPENRISC_TARGET_ELF_H -#define HAVE_ELF_CORE_DUMP 1 +#include "target_ptrace.h" -typedef abi_ulong target_elf_greg_t; +#define HAVE_ELF_CORE_DUMP 1 -/* See linux kernel arch/openrisc/include/asm/elf.h. */ -#define ELF_NREG 34 /* gprs and pc, sr */ +/* + * See linux kernel: arch/openrisc/include/uapi/asm/elf.h, where + * elf_gregset_t is mapped to struct user_regs_struct via sizeof. + */ typedef struct target_elf_gregset_t { - target_elf_greg_t regs[ELF_NREG]; + struct target_user_regs_struct pt; } target_elf_gregset_t; #endif |