From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4SVf-0001c2-Gl for qemu-devel@nongnu.org; Tue, 08 Jul 2014 06:20:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4SVX-0007p4-DL for qemu-devel@nongnu.org; Tue, 08 Jul 2014 06:20:27 -0400 From: Alexander Graf Date: Tue, 8 Jul 2014 12:20:14 +0200 Message-Id: <1404814818-15101-5-git-send-email-agraf@suse.de> In-Reply-To: <1404814818-15101-1-git-send-email-agraf@suse.de> References: <1404814818-15101-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PULL 4/8] PPC: Fix booke206 TLB with phys addrs > 32bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org We were truncating physical addresses to 32bit when using qemu-system-ppc with a booke206 TLB implementation. This patch fixes that and makes the full address space available. Signed-off-by: Alexander Graf --- target-ppc/mmu_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/mmu_helper.c b/target-ppc/mmu_helper.c index 4d6b1e2..4a34a73 100644 --- a/target-ppc/mmu_helper.c +++ b/target-ppc/mmu_helper.c @@ -897,10 +897,10 @@ static hwaddr booke206_tlb_to_page_size(CPUPPCState *env, /* TLB check function for MAS based SoftTLBs */ static int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, - hwaddr *raddrp, - target_ulong address, uint32_t pid) + hwaddr *raddrp, target_ulong address, + uint32_t pid) { - target_ulong mask; + hwaddr mask; uint32_t tlb_pid; if (!msr_cm) { -- 1.8.1.4