Received: from [140.186.70.92] (port=43167 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgPi3-0007o7-48 for qemu-devel@nongnu.org; Fri, 21 Jan 2011 17:44:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgPhw-0000V8-HY for qemu-devel@nongnu.org; Fri, 21 Jan 2011 17:43:53 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:64295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgPhw-0000Ux-DC for qemu-devel@nongnu.org; Fri, 21 Jan 2011 17:43:52 -0500 Received: by ewy10 with SMTP id 10so1262786ewy.4 for ; Fri, 21 Jan 2011 14:43:51 -0800 (PST) Date: Fri, 21 Jan 2011 23:43:47 +0100 From: "Edgar E. Iglesias" Message-ID: <20110121224347.GA21090@laped.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] ppc: Fix BookE tlb entry reads List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: agraf@suse.de commit 5823947f9f1e55fb6599c9ed769ce25cdec38355 Author: Edgar E. Iglesias Date: Fri Jan 21 23:12:42 2011 +0100 ppc: Correct BookE tlb reads Call the tlb read helper (and not the write helper) for tlb reads. Signed-off-by: Edgar E. Iglesias diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 74e06d7..89413c5 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -5874,7 +5874,7 @@ static void gen_tlbre_440(DisasContext *ctx) case 2: { TCGv_i32 t0 = tcg_const_i32(rB(ctx->opcode)); - gen_helper_440_tlbwe(t0, cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]); + gen_helper_440_tlbre(cpu_gpr[rD(ctx->opcode)], t0, cpu_gpr[rA(ctx->opcode)]); tcg_temp_free_i32(t0); } break;