Received: from eggs.gnu.org ([208.118.235.92]:36435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiVB-000386-6s for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbiV9-0008JQ-CH for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52724 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbiV9-0008Il-6q for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:24:03 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 5 Jun 2012 03:22:05 +0200 Message-Id: <1338859366-20689-34-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 33/74] target-mips: Use cpu_reset() in cpu_mips_init() 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 Commit 0f71a7095db6bc055bc5bb520d85ea650cca8a33 (target-mips: QOM'ify CPU) hooked up cpu_state_reset() to CPUClass::reset(). Dropping the introduction of subclasses for 1.1, due to mips_def_t the reset code could not be QOM'ified yet, i.e. cpu_state_reset() will not forward to CPUClass::reset(). Update cpu_mips_init() with cpu_reset() nontheless, indirectly calling cpu_state_reset(), so that generic code can be converted to call cpu_reset(). Signed-off-by: Andreas F=C3=A4rber --- target-mips/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 0c563ee..1ab44ed 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -12709,7 +12709,7 @@ CPUMIPSState *cpu_mips_init (const char *cpu_mode= l) fpu_init(env, def); mvp_init(env, def); mips_tcg_init(); - cpu_state_reset(env); + cpu_reset(CPU(cpu)); qemu_init_vcpu(env); return env; } --=20 1.7.7