mirror of https://github.com/xemu-project/xemu.git
PPC: booke206: allow NULL raddr in ppcmas_tlb_check
We might want to call the tlb check function without actually caring about the real address resolution. Check if we really should write the value back. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
dcb2b9e100
commit
ffba87862b
|
@ -1338,7 +1338,10 @@ int ppcmas_tlb_check(CPUState *env, ppcmas_tlb_t *tlb,
|
||||||
if ((address & mask) != (tlb->mas2 & MAS2_EPN_MASK)) {
|
if ((address & mask) != (tlb->mas2 & MAS2_EPN_MASK)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
*raddrp = (tlb->mas7_3 & mask) | (address & ~mask);
|
|
||||||
|
if (raddrp) {
|
||||||
|
*raddrp = (tlb->mas7_3 & mask) | (address & ~mask);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue