From 3c60d4b0eaa54983cf8e347fb156742c925f0594 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 10 Nov 2020 22:07:52 -0300 Subject: Do not report unmapped pages as dirty (#1672) * Do not report unmapped pages as dirty * Make tests pass again * PR feedback --- Ryujinx.Memory/Tracking/MemoryTracking.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Memory/Tracking/MemoryTracking.cs') diff --git a/Ryujinx.Memory/Tracking/MemoryTracking.cs b/Ryujinx.Memory/Tracking/MemoryTracking.cs index 779166c4..aff223e8 100644 --- a/Ryujinx.Memory/Tracking/MemoryTracking.cs +++ b/Ryujinx.Memory/Tracking/MemoryTracking.cs @@ -75,6 +75,7 @@ namespace Ryujinx.Memory.Tracking { VirtualRegion region = results[i]; region.RecalculatePhysicalChildren(); + region.UpdateProtection(); } } } @@ -200,7 +201,7 @@ namespace Ryujinx.Memory.Tracking lock (TrackingLock) { - RegionHandle handle = new RegionHandle(this, address, size); + RegionHandle handle = new RegionHandle(this, address, size, _memoryManager.IsRangeMapped(address, size)); return handle; } -- cgit v1.2.3