diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 22:09:19 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 1aec088719c5646b3117fd3b9c4507830f99f432 (patch) | |
| tree | e127266d1a68d6eb7415e0a5989837c02eaea7fd /linux-user/elfload.c | |
| parent | a56cf00bc06a11627ec7b695618532d0d58cf8de (diff) | |
| download | focaccia-qemu-1aec088719c5646b3117fd3b9c4507830f99f432.tar.gz focaccia-qemu-1aec088719c5646b3117fd3b9c4507830f99f432.zip | |
linux-user/hppa: 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 | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 556f11d720..4876e4b0a8 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -864,18 +864,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, #define VDSO_HEADER "vdso.c.inc" -static inline void init_thread(struct target_pt_regs *regs, - struct image_info *infop) -{ - regs->iaoq[0] = infop->entry | PRIV_USER; - regs->iaoq[1] = regs->iaoq[0] + 4; - regs->gr[23] = 0; - regs->gr[24] = infop->argv; - regs->gr[25] = infop->argc; - /* The top-of-stack contains a linkage buffer. */ - regs->gr[30] = infop->start_stack + 64; - regs->gr[31] = infop->entry; -} +#define HAVE_INIT_MAIN_THREAD #define LO_COMMPAGE 0 |