Only try to free pages that are actually mapped

This commit is contained in:
gdkchan 2018-08-17 01:27:42 -03:00
parent 2a07b302bb
commit 00a519b466

View file

@ -744,6 +744,11 @@ namespace Ryujinx.HLE.HOS.Kernel
{
long VA = Position + Page * PageSize;
if (!CpuMemory.IsMapped(VA))
{
continue;
}
long PA = CpuMemory.GetPhysicalAddress(VA);
Allocator.Free(PA, PageSize);