diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 21:53:30 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | ff053f9c5a4df1f0fb49ab7d7a0886a43f18a4f4 (patch) | |
| tree | c834798e3110421149dc61748134db5a96f41804 /linux-user/elfload.c | |
| parent | 011480ff599d76e62a0e49ddd21ba9023cdb0ec3 (diff) | |
| download | focaccia-qemu-ff053f9c5a4df1f0fb49ab7d7a0886a43f18a4f4.tar.gz focaccia-qemu-ff053f9c5a4df1f0fb49ab7d7a0886a43f18a4f4.zip | |
linux-user/m68k: Create init_main_thread
Merge init_thread and target_cpu_copy_regs. There's no point going through a target_pt_regs intermediate. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/elfload.c')
| -rw-r--r-- | linux-user/elfload.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 8604308a31..46150586af 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -746,16 +746,7 @@ static inline void elf_core_copy_regs(target_elf_gregset_t *regs, #define ELF_CLASS ELFCLASS32 #define ELF_ARCH EM_68K -/* ??? Does this need to do anything? - #define ELF_PLAT_INIT(_r) */ - -static inline void init_thread(struct target_pt_regs *regs, - struct image_info *infop) -{ - regs->usp = infop->start_stack; - regs->sr = 0; - regs->pc = infop->entry; -} +#define HAVE_INIT_MAIN_THREAD /* See linux kernel: arch/m68k/include/asm/elf.h. */ #define ELF_NREG 20 |