diff options
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/mmu-hash32.c | 2 | ||||
-rw-r--r-- | target-ppc/mmu-hash64.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/mmu-hash32.c b/target-ppc/mmu-hash32.c index e5ee29bfc7..07e9b8c85f 100644 --- a/target-ppc/mmu-hash32.c +++ b/target-ppc/mmu-hash32.c @@ -346,7 +346,7 @@ static hwaddr ppc_hash32_htab_lookup(CPUPPCState *env, static hwaddr ppc_hash32_pte_raddr(target_ulong sr, ppc_hash_pte32_t pte, target_ulong eaddr) { - hwaddr rpn = pte.pte1; + hwaddr rpn = pte.pte1 & HPTE32_R_RPN; hwaddr mask = ~TARGET_PAGE_MASK; return (rpn & ~mask) | (eaddr & mask); diff --git a/target-ppc/mmu-hash64.c b/target-ppc/mmu-hash64.c index 5e168d5e8d..d986c0fd57 100644 --- a/target-ppc/mmu-hash64.c +++ b/target-ppc/mmu-hash64.c @@ -365,7 +365,7 @@ static hwaddr ppc_hash64_htab_lookup(CPUPPCState *env, static hwaddr ppc_hash64_pte_raddr(ppc_slb_t *slb, ppc_hash_pte64_t pte, target_ulong eaddr) { - hwaddr rpn = pte.pte1; + hwaddr rpn = pte.pte1 & HPTE64_R_RPN; /* FIXME: Add support for SLLP extended page sizes */ int target_page_bits = (slb->vsid & SLB_VSID_L) ? TARGET_PAGE_BITS_16M : TARGET_PAGE_BITS; |