Only try to free pages that are actually mapped
This commit is contained in:
parent
2a07b302bb
commit
00a519b466
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue