提交 072ae847 编写于 作者: T ths

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
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册