diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-11-10 22:07:52 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 22:07:52 -0300 |
| commit | 3c60d4b0eaa54983cf8e347fb156742c925f0594 (patch) | |
| tree | b224bb0a167a45d68a07294eefd51c52e9aea4a9 /Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs | |
| parent | 02872833b6da02a20e331305caf05f722e6c8e68 (diff) | |
Do not report unmapped pages as dirty (#1672)
* Do not report unmapped pages as dirty
* Make tests pass again
* PR feedback
Diffstat (limited to 'Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs')
| -rw-r--r-- | Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs index f9692cfc..037bedc8 100644 --- a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs +++ b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs @@ -15,6 +15,11 @@ namespace Ryujinx.Memory.Tests return NoMappings ? new (ulong address, ulong size)[0] : new (ulong address, ulong size)[] { (va, size) }; } + public bool IsRangeMapped(ulong va, ulong size) + { + return true; + } + public void TrackingReprotect(ulong va, ulong size, MemoryPermission protection) { |
