OK by me. Go ahead and commit. Natee
On Sun, Nov 8, 2009 at 4:16 PM, Vince Weaver <[email protected]> wrote: > > this one must have been missed during the conversion. > > # HG changeset patch > # User Vince Weaver <[email protected]> > # Date 1257725486 18000 > # Node ID a6d359b2979ffd4e0171be2693ab0fbb13f86ac4 > # Parent a5322e816a2a1a20f8ee78659d1e6cdc252480cf > syscall: missing initializer in getcwd call > > This one case was missed during the update to stack-based arguments. > Without this fix, m5 will crash during a gwtcwd call, at least > with X86. > > diff -r a5322e816a2a -r a6d359b2979f src/sim/syscall_emul.cc > --- a/src/sim/syscall_emul.cc Sun Nov 08 15:49:03 2009 -0800 > +++ b/src/sim/syscall_emul.cc Sun Nov 08 19:11:26 2009 -0500 > @@ -306,7 +306,7 @@ > getcwdFunc(SyscallDesc *desc, int num, LiveProcess *p, ThreadContext *tc) > { > int result = 0; > - int index; > + int index = 0; > Addr bufPtr = p->getSyscallArg(tc, index); > unsigned long size = p->getSyscallArg(tc, index); > BufferArg buf(bufPtr, size); > _______________________________________________ > m5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/m5-dev > > _______________________________________________ m5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/m5-dev
