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:
parent
411edc22cb
commit
90b4f8ad72
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user