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
master
ths 2007-06-22 10:13:51 +00:00
parent 4c909d14c2
commit 072ae847f9
1 changed files with 1 additions and 1 deletions

View File

@ -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