Received: from eggs.gnu.org ([208.118.235.92]:41438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STz8G-00057z-5R 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 1STz8B-0000cH-TC for qemu-devel@nongnu.org; Mon, 14 May 2012 13:32:27 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49639 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1STz8B-0000aq-NC for qemu-devel@nongnu.org; Mon, 14 May 2012 13:32:23 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 14 May 2012 19:32:03 +0200 Message-Id: <1337016729-12285-17-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 16/22] realview: Use cpu_arm_init() to obtain ARMCPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paul Brook Needed for arm_pic_init_cpu(). Signed-off-by: Andreas F=C3=A4rber --- hw/realview.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/realview.c b/hw/realview.c index d60435f..38085f1 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -50,7 +50,8 @@ static void realview_init(ram_addr_t ram_size, const char *initrd_filename, const char *cpu_model, enum realview_board_type board_type) { - CPUARMState *env =3D NULL; + ARMCPU *cpu =3D NULL; + CPUARMState *env; MemoryRegion *sysmem =3D get_system_memory(); MemoryRegion *ram_lo =3D g_new(MemoryRegion, 1); MemoryRegion *ram_hi =3D g_new(MemoryRegion, 1); @@ -88,14 +89,15 @@ static void realview_init(ram_addr_t ram_size, break; } for (n =3D 0; n < smp_cpus; n++) { - env =3D cpu_init(cpu_model); - if (!env) { + cpu =3D cpu_arm_init(cpu_model); + if (!cpu) { fprintf(stderr, "Unable to find CPU definition\n"); exit(1); } - irqp =3D arm_pic_init_cpu(env); + irqp =3D arm_pic_init_cpu(&cpu->env); cpu_irq[n] =3D irqp[ARM_PIC_CPU_IRQ]; } + env =3D &cpu->env; if (arm_feature(env, ARM_FEATURE_V7)) { if (is_mpcore) { proc_id =3D 0x0c000000; --=20 1.7.7