Received: from eggs.gnu.org ([208.118.235.92]:36621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVM-0003R9-1C for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbiVI-0008NN-U8 for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:15 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52751 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVI-0008Mu-Nq for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:12 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Jun 2012 03:22:16 +0200 Message-Id: <1338859366-20689-45-git-send-email-afaerber@suse.de> In-Reply-To: <1338859366-20689-1-git-send-email-afaerber@suse.de> References: <1338859366-20689-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 44/74] mips_r4k: Use cpu_mips_init() to obtain MIPSCPU 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?= , Aurelien Jarno Needed for main_cpu_reset(). Signed-off-by: Andreas F=C3=A4rber --- hw/mips_r4k.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/mips_r4k.c b/hw/mips_r4k.c index e2da49c..f89957c 100644 --- a/hw/mips_r4k.c +++ b/hw/mips_r4k.c @@ -162,6 +162,7 @@ void mips_r4k_init (ram_addr_t ram_size, MemoryRegion *bios; MemoryRegion *iomem =3D g_new(MemoryRegion, 1); int bios_size; + MIPSCPU *cpu; CPUMIPSState *env; ResetData *reset_info; int i; @@ -179,11 +180,13 @@ void mips_r4k_init (ram_addr_t ram_size, cpu_model =3D "24Kf"; #endif } - env =3D cpu_init(cpu_model); - if (!env) { + cpu =3D cpu_mips_init(cpu_model); + if (cpu =3D=3D NULL) { fprintf(stderr, "Unable to find CPU definition\n"); exit(1); } + env =3D &cpu->env; + reset_info =3D g_malloc0(sizeof(ResetData)); reset_info->env =3D env; reset_info->vector =3D env->active_tc.PC; --=20 1.7.7