]> git.proxmox.com Git - mirror_qemu.git/commitdiff
PPC: Fix booke206 TLB with phys addrs > 32bit
authorAlexander Graf <agraf@suse.de>
Wed, 2 Jul 2014 17:09:47 +0000 (19:09 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 8 Jul 2014 10:10:36 +0000 (12:10 +0200)
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 <agraf@suse.de>
target-ppc/mmu_helper.c

index 4d6b1e20c053f6b79c4c9712ddaae322ccb73c28..4a34a73ad4e5eaf21a533bd612bfe1c7f2bf630c 100644 (file)
@@ -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) {