From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sds4j-0002w2-5U for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sds4h-0006Qh-Af for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:40 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44017 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sds4h-0006QS-44 for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:39 -0400 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id E7E52915A2 for ; Mon, 11 Jun 2012 02:01:37 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 11 Jun 2012 02:00:57 +0200 Message-Id: <1339372859-30148-26-git-send-email-afaerber@suse.de> In-Reply-To: <1339372859-30148-1-git-send-email-afaerber@suse.de> References: <1339372859-30148-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 25/27] s390-virtio: Use cpu_s390x_init() to obtain S390CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alexander Graf Needed to store S390CPU in ipi_states[]. Signed-off-by: Andreas F=C3=A4rber --- hw/s390-virtio.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index c0e19fd..49b3495 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -209,9 +209,11 @@ static void s390_init(ram_addr_t my_ram_size, ipi_states =3D g_malloc(sizeof(CPUS390XState *) * smp_cpus); =20 for (i =3D 0; i < smp_cpus; i++) { + S390CPU *cpu; CPUS390XState *tmp_env; =20 - tmp_env =3D cpu_init(cpu_model); + cpu =3D cpu_s390x_init(cpu_model); + tmp_env =3D &cpu->env; if (!env) { env =3D tmp_env; } --=20 1.7.7