From patchwork Sat May 7 23:00:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 94520 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 331C9B7132 for ; Sun, 8 May 2011 09:02:38 +1000 (EST) Received: from localhost ([::1]:47843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIqWB-0007Cd-DZ for incoming@patchwork.ozlabs.org; Sat, 07 May 2011 19:02:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]:37051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIqUS-0004o6-7t for qemu-devel@nongnu.org; Sat, 07 May 2011 19:00:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIqUR-0007id-64 for qemu-devel@nongnu.org; Sat, 07 May 2011 19:00:48 -0400 Received: from cantor.suse.de ([195.135.220.2]:50086 helo=mx1.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIqUQ-0007iC-Tl for qemu-devel@nongnu.org; Sat, 07 May 2011 19:00:47 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id EE4039B5AF; Sun, 8 May 2011 01:00:45 +0200 (CEST) From: Alexander Graf To: QEMU-devel Developers Date: Sun, 8 May 2011 01:00:44 +0200 Message-Id: <1304809245-7503-7-git-send-email-agraf@suse.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1304809245-7503-1-git-send-email-agraf@suse.de> References: <1304809245-7503-1-git-send-email-agraf@suse.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 195.135.220.2 Cc: Scott Wood , "Edgar E. Iglesias" , Liu Yu , Paul Brook Subject: [Qemu-devel] [PATCH 6/7] PPC MPC7544DS: Use new TLB helper function 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 Now that we have some nice helpers that can find us a TLB entry, let's use that on the machine initialization code, so we don't need to know about the internals of the TLB array. Signed-off-by: Alexander Graf --- hw/ppce500_mpc8544ds.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 44d6440..4120977 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -179,7 +179,7 @@ static void mmubooke_create_initial_mapping(CPUState *env, target_ulong va, target_phys_addr_t pa) { - ppcemb_tlb_t *tlb = &env->tlb[512].tlbe; + ppcemb_tlb_t *tlb = booke206_get_tlbe(env, 1, 0, 0); tlb->attr = 0; tlb->prot = PAGE_VALID | ((PAGE_READ | PAGE_WRITE | PAGE_EXEC) << 4);