mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
Setup stack properly, fixes wrong argc value problem, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3000 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4c909d14c2
commit
072ae847f9
|
@ -325,7 +325,7 @@ static inline void init_thread(struct target_pt_regs *regs, struct image_info *i
|
|||
{
|
||||
/* Check other registers XXXXX */
|
||||
regs->pc = infop->entry;
|
||||
regs->regs[15] = infop->start_stack - 16 * 4;
|
||||
regs->regs[15] = infop->start_stack;
|
||||
}
|
||||
|
||||
#define USE_ELF_CORE_DUMP
|
||||
|
|
Loading…
Reference in a new issue