Commit 072ae847 authored by ths's avatar ths
Browse files

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
parent 4c909d14
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment