mirror of https://github.com/PCSX2/pcsx2.git
VTLB: Fix unmapping all pages with 16K host
This commit is contained in:
parent
122f1ec767
commit
22d929d171
|
@ -975,15 +975,15 @@ static void vtlb_RemoveFastmemMappings()
|
||||||
if (s_fastmem_virtual_mapping[page] == NO_FASTMEM_MAPPING)
|
if (s_fastmem_virtual_mapping[page] == NO_FASTMEM_MAPPING)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
s_fastmem_virtual_mapping[page] = NO_FASTMEM_MAPPING;
|
if (vtlb_IsHostCoalesced(page))
|
||||||
|
{
|
||||||
if (!vtlb_IsHostAligned(page << VTLB_PAGE_BITS))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!s_fastmem_area->Unmap(s_fastmem_area->PagePointer(vtlb_HostPage(page)), __pagesize))
|
if (!s_fastmem_area->Unmap(s_fastmem_area->PagePointer(vtlb_HostPage(page)), __pagesize))
|
||||||
Console.Error("Failed to unmap vaddr %08X", page * __pagesize);
|
Console.Error("Failed to unmap vaddr %08X", page * __pagesize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s_fastmem_virtual_mapping[page] = NO_FASTMEM_MAPPING;
|
||||||
|
}
|
||||||
|
|
||||||
s_fastmem_physical_mapping.clear();
|
s_fastmem_physical_mapping.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue