Received: from eggs.gnu.org ([208.118.235.92]:33907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGLo2-0004TC-8L for qemu-devel@nongnu.org; Thu, 14 Mar 2013 23:59:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGLny-0000e4-3w for qemu-devel@nongnu.org; Thu, 14 Mar 2013 23:59:46 -0400 From: David Gibson Date: Fri, 15 Mar 2013 14:59:29 +1100 Message-Id: <1363319969-23517-1-git-send-email-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] pseries: Fix breakage in CPU QOM conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: David Gibson , qemu-ppc@nongnu.org, afaerber@suse.de, qemu-devel@nongnu.org Commit 259186a7d2f7184efc96ae99bc5658e6159f53ad "cpu: Move halted and interrupt_request fields to CPUState" broke the pseries machine. That's because it uses CPU() instead of ENV_GET_CPU() to convert from the global first_cpu pointer (still a CPUArchState) to a CPUState. This patch fixes the breakage. Cc: Andreas F=C3=A4rber Signed-off-by: David Gibson --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 0c51d04..b776d34 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -645,7 +645,7 @@ static void ppc_spapr_reset(void) spapr->rtas_size); =20 /* Set up the entry state */ - first_cpu_cpu =3D CPU(first_cpu); + first_cpu_cpu =3D ENV_GET_CPU(first_cpu); first_cpu->gpr[3] =3D spapr->fdt_addr; first_cpu->gpr[5] =3D 0; first_cpu_cpu->halted =3D 0; --=20 1.7.10.4