Received: from eggs.gnu.org ([208.118.235.92]:36831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVW-0003aW-Id for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbiVU-0008S5-VM for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:26 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Jun 2012 03:22:29 +0200 Message-Id: <1338859366-20689-58-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 57/74] ppc_oldworld: Pass PowerPCCPU to ppc_heathrow_reset() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "open list:Old World" , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alexander Graf Allows us to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas F=C3=A4rber Acked-by: Alexander Graf --- hw/ppc_oldworld.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index ba8f3ad..f2c6908 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_oldworld.c @@ -67,9 +67,9 @@ static target_phys_addr_t round_page(target_phys_addr_t= addr) =20 static void ppc_heathrow_reset(void *opaque) { - CPUPPCState *env =3D opaque; + PowerPCCPU *cpu =3D opaque; =20 - cpu_state_reset(env); + cpu_reset(CPU(cpu)); } =20 static void ppc_heathrow_init (ram_addr_t ram_size, @@ -114,7 +114,7 @@ static void ppc_heathrow_init (ram_addr_t ram_size, =20 /* Set time-base frequency to 16.6 Mhz */ cpu_ppc_tb_init(env, 16600000UL); - qemu_register_reset(ppc_heathrow_reset, env); + qemu_register_reset(ppc_heathrow_reset, cpu); } =20 /* allocate RAM */ --=20 1.7.7