Avoid compilation warnings on 32 bits hosts.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3203 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
928684128e
commit
9706285b78
|
@ -846,10 +846,12 @@ static int ppcemb_tlb_check (CPUState *env, ppcemb_tlb_t *tlb,
|
||||||
if ((address & mask) != tlb->EPN)
|
if ((address & mask) != tlb->EPN)
|
||||||
return -1;
|
return -1;
|
||||||
*raddrp = (tlb->RPN & mask) | (address & ~mask);
|
*raddrp = (tlb->RPN & mask) | (address & ~mask);
|
||||||
|
#if (TARGET_PHYS_ADDR_BITS >= 36)
|
||||||
if (ext) {
|
if (ext) {
|
||||||
/* Extend the physical address to 36 bits */
|
/* Extend the physical address to 36 bits */
|
||||||
*raddrp |= (target_phys_addr_t)(tlb->RPN & 0xF) << 32;
|
*raddrp |= (target_phys_addr_t)(tlb->RPN & 0xF) << 32;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1078,11 +1080,11 @@ static int check_physical (CPUState *env, mmu_ctx_t *ctx,
|
||||||
#if defined(TARGET_PPC64)
|
#if defined(TARGET_PPC64)
|
||||||
case PPC_FLAGS_MMU_64B:
|
case PPC_FLAGS_MMU_64B:
|
||||||
case PPC_FLAGS_MMU_64BRIDGE:
|
case PPC_FLAGS_MMU_64BRIDGE:
|
||||||
#endif
|
|
||||||
/* Real address are 60 bits long */
|
/* Real address are 60 bits long */
|
||||||
ctx->raddr &= 0x0FFFFFFFFFFFFFFFUL;
|
ctx->raddr &= 0x0FFFFFFFFFFFFFFFUL;
|
||||||
ctx->prot |= PAGE_WRITE;
|
ctx->prot |= PAGE_WRITE;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case PPC_FLAGS_MMU_403:
|
case PPC_FLAGS_MMU_403:
|
||||||
if (unlikely(msr_pe != 0)) {
|
if (unlikely(msr_pe != 0)) {
|
||||||
/* 403 family add some particular protections,
|
/* 403 family add some particular protections,
|
||||||
|
|
Loading…
Reference in a new issue