mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
PPC: Fix booke206 TLB with phys addrs > 32bit
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 <agraf@suse.de>
This commit is contained in:
parent
be5c9ddabc
commit
da89a1cf92
1 changed files with 3 additions and 3 deletions
|
@ -897,10 +897,10 @@ static hwaddr booke206_tlb_to_page_size(CPUPPCState *env,
|
||||||
|
|
||||||
/* TLB check function for MAS based SoftTLBs */
|
/* TLB check function for MAS based SoftTLBs */
|
||||||
static int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb,
|
static int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb,
|
||||||
hwaddr *raddrp,
|
hwaddr *raddrp, target_ulong address,
|
||||||
target_ulong address, uint32_t pid)
|
uint32_t pid)
|
||||||
{
|
{
|
||||||
target_ulong mask;
|
hwaddr mask;
|
||||||
uint32_t tlb_pid;
|
uint32_t tlb_pid;
|
||||||
|
|
||||||
if (!msr_cm) {
|
if (!msr_cm) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue