diff options
Diffstat (limited to 'Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs')
| -rw-r--r-- | Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs new file mode 100644 index 00000000..f9692cfc --- /dev/null +++ b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs @@ -0,0 +1,23 @@ +using Ryujinx.Memory.Tracking; + +namespace Ryujinx.Memory.Tests +{ + class MockVirtualMemoryManager : IVirtualMemoryManager + { + public bool NoMappings; + + public MockVirtualMemoryManager(ulong size, int pageSize) + { + } + + public (ulong address, ulong size)[] GetPhysicalRegions(ulong va, ulong size) + { + return NoMappings ? new (ulong address, ulong size)[0] : new (ulong address, ulong size)[] { (va, size) }; + } + + public void TrackingReprotect(ulong va, ulong size, MemoryPermission protection) + { + + } + } +} |
