Revision 4be403c8 target-ppc/mmu_helper.c

b/target-ppc/mmu_helper.c
1032 1032
        return -1;
1033 1033
    }
1034 1034
    *raddrp = (tlb->RPN & mask) | (address & ~mask);
1035
#if (TARGET_PHYS_ADDR_BITS >= 36)
1036 1035
    if (ext) {
1037 1036
        /* Extend the physical address to 36 bits */
1038
        *raddrp |= (target_phys_addr_t)(tlb->RPN & 0xF) << 32;
1037
        *raddrp |= (uint64_t)(tlb->RPN & 0xF) << 32;
1039 1038
    }
1040
#endif
1041 1039

  
1042 1040
    return 0;
1043 1041
}

Also available in: Unified diff