From: Richard Henderson Date: Wed, 12 Sep 2012 23:52:31 +0000 (-0700) Subject: target-s390: Fix cpu_clone_regs X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~2825^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90b4f8ad7226960d3a21bd8fca894ce1e6b5e4cf;p=sdk%2Femulator%2Fqemu.git target-s390: Fix cpu_clone_regs R2 is the syscall return register, not R0. Signed-off-by: Richard Henderson --- diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index dc7bbc6..bc3fab2 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -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