as to give it a sane starting state. This may not be the Right
Answer, but it fixes regtest failure 'susphello' and doesn't break
anything else.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3116
VG_(threads)[tid].status = VgTs_Runnable;
/* Copy the parent's CPU state into the child's. */
+ VG_(threads)[tid].arch.vex = VG_(threads)[parent_tid].arch.vex;
+ VG_(threads)[tid].arch.vex_shadow = VG_(threads)[parent_tid].arch.vex_shadow;
+ /* and let setup_child do any needed target-specific setup. */
VGA_(setup_child)( &VG_(threads)[tid].arch,
&VG_(threads)[parent_tid].arch );