From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sds4a-0002VF-Iv for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sds4Y-0006P0-IA for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:32 -0400 Received: from cantor2.suse.de ([195.135.220.15]:43976 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sds4Y-0006Oq-CR for qemu-devel@nongnu.org; Sun, 10 Jun 2012 20:01:30 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 11 Jun 2012 02:00:52 +0200 Message-Id: <1339372859-30148-21-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 20/27] xilinx_zynq: 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 Crosthwaite , =?UTF-8?q?Andreas=20F=C3=A4rber?= Needed for arm_load_kernel(). Signed-off-by: Andreas F=C3=A4rber Acked-by: Peter A.G. Crosthwaite --- hw/xilinx_zynq.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xilinx_zynq.c b/hw/xilinx_zynq.c index 7290c64..68349e2 100644 --- a/hw/xilinx_zynq.c +++ b/hw/xilinx_zynq.c @@ -50,7 +50,7 @@ static void zynq_init(ram_addr_t ram_size, const char *= boot_device, const char *kernel_filename, const char *kernel_= cmdline, const char *initrd_filename, const char *cpu_mod= el) { - CPUARMState *env =3D NULL; + ARMCPU *cpu; MemoryRegion *address_space_mem =3D get_system_memory(); MemoryRegion *ext_ram =3D g_new(MemoryRegion, 1); MemoryRegion *ocm_ram =3D g_new(MemoryRegion, 1); @@ -66,12 +66,12 @@ static void zynq_init(ram_addr_t ram_size, const char= *boot_device, cpu_model =3D "cortex-a9"; } =20 - 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 =3D irqp[ARM_PIC_CPU_IRQ]; =20 /* max 2GB ram */ --=20 1.7.7