Skip to content

Commit

Permalink
PPC: Fix booke206 TLB with phys addrs > 32bit
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
agraf committed Jul 8, 2014
1 parent be5c9dd commit da89a1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions target-ppc/mmu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da89a1c

Please sign in to comment.