diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 22:19:49 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | f61c88c571e5e68cdf1d935d7524493a8f404556 (patch) | |
| tree | 465600f0494bb563900d327f8990d94c51145bbc /linux-user/elfload.c | |
| parent | ceff7f9ae996ec9bb78d463f054241c338dc979c (diff) | |
| download | focaccia-qemu-f61c88c571e5e68cdf1d935d7524493a8f404556.tar.gz focaccia-qemu-f61c88c571e5e68cdf1d935d7524493a8f404556.zip | |
linux-user/hexagon: 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 | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 447a9be11d..4417c2d99a 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -954,12 +954,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, #define ELF_CLASS ELFCLASS32 #define ELF_ARCH EM_HEXAGON -static inline void init_thread(struct target_pt_regs *regs, - struct image_info *infop) -{ - regs->sepc = infop->entry; - regs->sp = infop->start_stack; -} +#define HAVE_INIT_MAIN_THREAD #endif /* TARGET_HEXAGON */ |