The stack address needs to start at the end of the allocated memory for the stack, not the beginning.

This commit is contained in:
Rick Gibbed 2013-05-31 20:55:52 -07:00
parent d53458023e
commit edf3a9155b
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ ThreadState::ThreadState(
ppc_state_.thread_state = this;
// Set initial registers.
ppc_state_.r[1] = stack_address_;
ppc_state_.r[1] = stack_address_ + stack_size;
ppc_state_.r[13] = thread_state_address_;
}