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