]> Git Repo - qemu.git/commitdiff
Setup stack properly, fixes wrong argc value problem, by Magnus Damm.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 22 Jun 2007 10:13:51 +0000 (10:13 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Fri, 22 Jun 2007 10:13:51 +0000 (10:13 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3000 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/elfload.c

index c0845fe6502b3ff88a9542566fef7d305f6199df..f844eff508cc4c2ffd18bb71e97f55b4d4a1fc22 100644 (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
This page took 0.02583 seconds and 4 git commands to generate.