From patchwork Mon May 21 02:01:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 160307 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 68C89B6FA4 for ; Mon, 21 May 2012 12:01:35 +1000 (EST) Received: from localhost ([::1]:57016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHwD-0006OG-M8 for incoming@patchwork.ozlabs.org; Sun, 20 May 2012 22:01:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHw4-0006M7-3Q for qemu-devel@nongnu.org; Sun, 20 May 2012 22:01:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWHvv-0008Uw-Tl for qemu-devel@nongnu.org; Sun, 20 May 2012 22:01:23 -0400 Received: from gate.crashing.org ([63.228.1.57]:56162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWHvv-0008UH-L3 for qemu-devel@nongnu.org; Sun, 20 May 2012 22:01:15 -0400 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id q4L2181I016656; Sun, 20 May 2012 21:01:10 -0500 Message-ID: <1337565668.2458.14.camel@pasglop> From: Benjamin Herrenschmidt To: Alexander Graf Date: Mon, 21 May 2012 12:01:08 +1000 In-Reply-To: <1337054780.6727.60.camel@pasglop> References: <1337054780.6727.60.camel@pasglop> X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 63.228.1.57 Cc: qemu-devel@nongnu.org Subject: [Qemu-devel] ppc: CPU reset must flush translation buffer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Without that, reset from SLOF crashes in full emulation. Reported-by: Thomas Huth Signed-off-by: Benjamin Herrenschmidt --- target-ppc/translate_init.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index ae03065..fbf7705 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -10285,6 +10285,7 @@ static void ppc_cpu_reset(CPUState *s) env->error_code = 0; /* Flush all TLBs */ tlb_flush(env, 1); + tb_flush(env); } static void ppc_cpu_initfn(Object *obj)