From patchwork Fri Sep 28 01:17:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [140/147] target-s390: Fix cpu_clone_regs Date: Thu, 27 Sep 2012 15:17:19 -0000 From: Richard Henderson X-Patchwork-Id: 187681 Message-Id: <1348795039-28745-1-git-send-email-rth@twiddle.net> To: qemu-devel@nongnu.org Cc: Alexander Graf R2 is the syscall return register, not R0. Signed-off-by: Richard Henderson --- target-s390x/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index a6a6e3f..cfc716a 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