From patchwork Fri Sep 28 01:17:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 187681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 30CA52C00B2 for ; Fri, 28 Sep 2012 11:17:33 +1000 (EST) Received: from localhost ([::1]:35994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THPCt-0000tV-8w for incoming@patchwork.ozlabs.org; Thu, 27 Sep 2012 21:17:31 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THPCm-0000tK-Nd for qemu-devel@nongnu.org; Thu, 27 Sep 2012 21:17:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THPCl-0004vV-PU for qemu-devel@nongnu.org; Thu, 27 Sep 2012 21:17:24 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:61575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THPCl-0004u4-HZ for qemu-devel@nongnu.org; Thu, 27 Sep 2012 21:17:23 -0400 Received: by padfb10 with SMTP id fb10so1820833pad.4 for ; Thu, 27 Sep 2012 18:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=VaVGOkKZYc96b5dJJkOG20fDA1YCeU6tfOTBx26nvgI=; b=qTyCcRCLeGMtheXiVacFG9NB+R2nJggLM6Jji5NihS5kmZGvCkkG/sb0W/RDEYpl4D DcxC7uOMy2K9nbwhcJMaGNAHiPSCA9Ew+BpjN19N7HPBurjOg8Kw/FehW4PNc4SRZrYU QioRHwq4rDL4kOqtiNMFASba8Qawv7MqctwdygmHQyrsaBlHuyDOOSUobid3Qn4yCKlO aIcLrTXHaW0Zy62kUGwBhgUAkFGtlfx9lWGzT3w+23HO27mmvZ5smduK/atn18jnBdLJ otaXqMSfluZw8hoFZEk64DjcNeHCLqDHm5si6ZPmLVqgkgLQIhs9nmql99sE8jJWQlTB lieA== Received: by 10.68.218.226 with SMTP id pj2mr16353678pbc.33.1348795042696; Thu, 27 Sep 2012 18:17:22 -0700 (PDT) Received: from anchor.twiddle.home.com ([173.160.232.49]) by mx.google.com with ESMTPS id vi9sm2889896pbc.41.2012.09.27.18.17.21 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 18:17:22 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 27 Sep 2012 18:17:19 -0700 Message-Id: <1348795039-28745-1-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1348785610-23418-1-git-send-email-rth@twiddle.net> References: <1348785610-23418-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.220.45 Cc: Alexander Graf Subject: [Qemu-devel] [PATCH 140/147] target-s390: Fix cpu_clone_regs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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