diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 21:44:06 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 2ffaa3f70dfbf07a3bdb1035fb4ba4e0f7f94de1 (patch) | |
| tree | cb24633affa906ed235ea63f438c20d3d43a5e8c /linux-user/elfload.c | |
| parent | e17cc00f7195f387720cd839dcb83fd17c2147c9 (diff) | |
| download | focaccia-qemu-2ffaa3f70dfbf07a3bdb1035fb4ba4e0f7f94de1.tar.gz focaccia-qemu-2ffaa3f70dfbf07a3bdb1035fb4ba4e0f7f94de1.zip | |
linux-user/microblaze: 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 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index ac96755b06..3f9ec49359 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -640,13 +640,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUMIPSState *e #define ELF_CLASS ELFCLASS32 #define ELF_ARCH EM_MICROBLAZE -static inline void init_thread(struct target_pt_regs *regs, - struct image_info *infop) -{ - regs->pc = infop->entry; - regs->r1 = infop->start_stack; - -} +#define HAVE_INIT_MAIN_THREAD #define ELF_EXEC_PAGESIZE 4096 |