From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSH2V-0001ck-3F for qemu-devel@nongnu.org; Wed, 09 May 2012 20:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSH2T-0005hU-B1 for qemu-devel@nongnu.org; Wed, 09 May 2012 20:15:26 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35628 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSH2T-0005gl-3T for qemu-devel@nongnu.org; Wed, 09 May 2012 20:15:25 -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 0EB61975D0 for ; Thu, 10 May 2012 02:15:24 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 10 May 2012 02:14:36 +0200 Message-Id: <1336608892-30501-59-git-send-email-afaerber@suse.de> In-Reply-To: <1336608892-30501-1-git-send-email-afaerber@suse.de> References: <1336608892-30501-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 next v2 58/74] petalogix_s3adsp1800_mmu: Use cpu_mb_init() to obtain MicroBlazeCPU 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?= Needed for microblaze_load_kernel(). Signed-off-by: Andreas F=C3=A4rber --- hw/petalogix_s3adsp1800_mmu.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.= c index 8b37336..7ff3cd5 100644 --- a/hw/petalogix_s3adsp1800_mmu.c +++ b/hw/petalogix_s3adsp1800_mmu.c @@ -62,6 +62,7 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size, const char *initrd_filename, const char *cpu_m= odel) { DeviceState *dev; + MicroBlazeCPU *cpu; CPUMBState *env; DriveInfo *dinfo; int i; @@ -75,7 +76,8 @@ petalogix_s3adsp1800_init(ram_addr_t ram_size, if (cpu_model =3D=3D NULL) { cpu_model =3D "microblaze"; } - env =3D cpu_init(cpu_model); + cpu =3D cpu_mb_init(cpu_model); + env =3D &cpu->env; =20 /* Attach emulated BRAM through the LMB. */ memory_region_init_ram(phys_lmb_bram, --=20 1.7.7