From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <1337565668.2458.14.camel@pasglop> From: Benjamin Herrenschmidt Date: Mon, 21 May 2012 12:01:08 +1000 In-Reply-To: <1337054780.6727.60.camel@pasglop> References: <1337054780.6727.60.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: [Qemu-devel] ppc: CPU reset must flush translation buffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-devel@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)