target-s390: Fix cpu_clone_regs

R2 is the syscall return register, not R0.

Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
Richard Henderson 2012-09-12 16:52:31 -07:00
parent 411edc22cb
commit 90b4f8ad72
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static inline void cpu_clone_regs(CPUS390XState *env, target_ulong newsp)
if (newsp) {
env->regs[15] = newsp;
}
env->regs[0] = 0;
env->regs[2] = 0;
}
#endif