diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 13:34:12 +1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-30 07:04:04 +1000 |
| commit | 92e1a92823eaa812451a9499754431b2002503ec (patch) | |
| tree | 7e8c474bc3522f9dfcf08465b6cd39ba9bdfa080 /linux-user/sh4/target_elf.h | |
| parent | ec12f80d1f2915bbd1c2734f7ce1dcbb3c0ff70b (diff) | |
| download | focaccia-qemu-92e1a92823eaa812451a9499754431b2002503ec.tar.gz focaccia-qemu-92e1a92823eaa812451a9499754431b2002503ec.zip | |
linux-user/sh4: 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/sh4/target_elf.h')
| -rw-r--r-- | linux-user/sh4/target_elf.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/linux-user/sh4/target_elf.h b/linux-user/sh4/target_elf.h index f7443ddbac..fd3ae68a01 100644 --- a/linux-user/sh4/target_elf.h +++ b/linux-user/sh4/target_elf.h @@ -8,15 +8,17 @@ #ifndef SH4_TARGET_ELF_H #define SH4_TARGET_ELF_H +#include "target_ptrace.h" + #define HAVE_ELF_HWCAP 1 #define HAVE_ELF_CORE_DUMP 1 -typedef abi_ulong target_elf_greg_t; - -/* See linux kernel: arch/sh/include/asm/elf.h. */ -#define ELF_NREG 23 +/* + * See linux kernel: arch/sh/include/asm/elf.h, where + * elf_gregset_t is mapped to struct pt_regs via sizeof. + */ typedef struct target_elf_gregset_t { - target_elf_greg_t regs[ELF_NREG]; + struct target_pt_regs pt; } target_elf_gregset_t; #endif |