Received: from eggs.gnu.org ([140.186.70.92]:39558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJYji-0004Yz-Os for qemu-devel@nongnu.org; Mon, 09 May 2011 18:15:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJYjh-0004Kq-7l for qemu-devel@nongnu.org; Mon, 09 May 2011 18:15:30 -0400 Received: from cantor2.suse.de ([195.135.220.15]:46506 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJYjh-0004KN-24 for qemu-devel@nongnu.org; Mon, 09 May 2011 18:15:29 -0400 From: Alexander Graf Date: Tue, 10 May 2011 00:15:25 +0200 Message-Id: <1304979326-30338-7-git-send-email-agraf@suse.de> In-Reply-To: <1304979326-30338-1-git-send-email-agraf@suse.de> References: <1304979326-30338-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 6/7] PPC MPC7544DS: Use new TLB helper function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU-devel Developers Cc: Scott Wood , "Edgar E. Iglesias" , Liu Yu , Paul Brook 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 25c14c1..96c37df 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); -- 1.6.0.2