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>
This commit is contained in:
parent
e17cc00f71
commit
2ffaa3f70d
2 changed files with 6 additions and 41 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue