Received: from eggs.gnu.org ([208.118.235.92]:36965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVd-0003oP-Ot for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbiVc-0008Ur-2r for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:33 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52779 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVb-0008Ua-T5 for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:32 -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 C951E8738D for ; Tue, 5 Jun 2012 03:24:30 +0200 (CEST) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Jun 2012 03:22:35 +0200 Message-Id: <1338859366-20689-64-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 63/74] cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC 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?= CPUState will be needed for all targets in the future, so place it into the main variable declaration block. Signed-off-by: Andreas F=C3=A4rber Acked-by: Alexander Graf --- cpu-exec.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index fbb39cb..83cac93 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -184,6 +184,9 @@ volatile sig_atomic_t exit_request; =20 int cpu_exec(CPUArchState *env) { +#ifdef TARGET_PPC + CPUState *cpu =3D ENV_GET_CPU(env); +#endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; @@ -341,7 +344,7 @@ int cpu_exec(CPUArchState *env) } #elif defined(TARGET_PPC) if ((interrupt_request & CPU_INTERRUPT_RESET)) { - cpu_state_reset(env); + cpu_reset(cpu); } if (interrupt_request & CPU_INTERRUPT_HARD) { ppc_hw_interrupt(env); --=20 1.7.7