Received: from eggs.gnu.org ([208.118.235.92]:41463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STz8H-00058E-8U for qemu-devel@nongnu.org; Mon, 14 May 2012 13:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1STz8C-0000cz-Th for qemu-devel@nongnu.org; Mon, 14 May 2012 13:32:28 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49647 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STz8C-0000c9-Ng for qemu-devel@nongnu.org; Mon, 14 May 2012 13:32:24 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 14 May 2012 19:32:05 +0200 Message-Id: <1337016729-12285-19-git-send-email-afaerber@suse.de> In-Reply-To: <1337016729-12285-1-git-send-email-afaerber@suse.de> References: <1337016729-12285-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 qom-next 18/22] exynos4210: Use cpu_arm_init() to store ARMCPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Igor Mitsyanko , Evgeny Voevodin , Dmitry Solodkiy , Maksim Kozlov , =?UTF-8?q?Andreas=20F=C3=A4rber?= Needed for arm_pic_init_cpu(). Signed-off-by: Andreas F=C3=A4rber --- hw/exynos4210.c | 6 +++--- hw/exynos4210.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/exynos4210.c b/hw/exynos4210.c index ae53837..7dc3787 100644 --- a/hw/exynos4210.c +++ b/hw/exynos4210.c @@ -107,13 +107,13 @@ Exynos4210State *exynos4210_init(MemoryRegion *syst= em_mem, SysBusDevice *busdev; =20 for (n =3D 0; n < EXYNOS4210_NCPUS; n++) { - s->env[n] =3D cpu_init("cortex-a9"); - if (!s->env[n]) { + s->cpu[n] =3D cpu_arm_init("cortex-a9"); + if (!s->cpu[n]) { fprintf(stderr, "Unable to find CPU %d definition\n", n); exit(1); } /* Create PIC controller for each processor instance */ - irqp =3D arm_pic_init_cpu(s->env[n]); + irqp =3D arm_pic_init_cpu(&s->cpu[n]->env); =20 /* * Get GICs gpio_in cpu_irq to connect a combiner to them later. diff --git a/hw/exynos4210.h b/hw/exynos4210.h index b520676..b1b4609 100644 --- a/hw/exynos4210.h +++ b/hw/exynos4210.h @@ -83,7 +83,7 @@ typedef struct Exynos4210Irq { } Exynos4210Irq; =20 typedef struct Exynos4210State { - CPUARMState * env[EXYNOS4210_NCPUS]; + ARMCPU *cpu[EXYNOS4210_NCPUS]; Exynos4210Irq irqs; qemu_irq *irq_table; =20 --=20 1.7.7