Received: from eggs.gnu.org ([208.118.235.92]:36581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVJ-0003KW-HG for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbiVH-0008Mq-S8 for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:13 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52750 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVH-0008MX-LY for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:11 -0400 Received: from relay1.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 8F2DA92016 for ; Tue, 5 Jun 2012 03:24:10 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Jun 2012 03:22:15 +0200 Message-Id: <1338859366-20689-44-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 43/74] mips_mipssim: Store MIPSCPU in ResetData 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?= Allows us to use cpu_reset() in place of cpu_state_reset() in main_cpu_reset(). Signed-off-by: Andreas F=C3=A4rber --- hw/mips_mipssim.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index 7c510da..eb03047 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -46,7 +46,7 @@ static struct _loaderparams { } loaderparams; =20 typedef struct ResetData { - CPUMIPSState *env; + MIPSCPU *cpu; uint64_t vector; } ResetData; =20 @@ -105,9 +105,9 @@ static int64_t load_kernel(void) static void main_cpu_reset(void *opaque) { ResetData *s =3D (ResetData *)opaque; - CPUMIPSState *env =3D s->env; + CPUMIPSState *env =3D &s->cpu->env; =20 - cpu_state_reset(env); + cpu_reset(CPU(s->cpu)); env->active_tc.PC =3D s->vector & ~(target_ulong)1; if (s->vector & 1) { env->hflags |=3D MIPS_HFLAG_M16; @@ -161,7 +161,7 @@ mips_mipssim_init (ram_addr_t ram_size, env =3D &cpu->env; =20 reset_info =3D g_malloc0(sizeof(ResetData)); - reset_info->env =3D env; + reset_info->cpu =3D cpu; reset_info->vector =3D env->active_tc.PC; qemu_register_reset(main_cpu_reset, reset_info); =20 --=20 1.7.7