diff options
Diffstat (limited to 'Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs')
-rw-r--r-- | Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs | 58 |
1 files changed, 56 insertions, 2 deletions
diff --git a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs index 037bedc8..c673bc80 100644 --- a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs +++ b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs @@ -1,4 +1,4 @@ -using Ryujinx.Memory.Tracking; +using System; namespace Ryujinx.Memory.Tests { @@ -10,19 +10,73 @@ namespace Ryujinx.Memory.Tests { } + public void Map(ulong va, ulong pa, ulong size) + { + throw new NotImplementedException(); + } + + public void Unmap(ulong va, ulong size) + { + throw new NotImplementedException(); + } + + public T Read<T>(ulong va) where T : unmanaged + { + throw new NotImplementedException(); + } + + public void Read(ulong va, Span<byte> data) + { + throw new NotImplementedException(); + } + + public void Write<T>(ulong va, T value) where T : unmanaged + { + throw new NotImplementedException(); + } + + public void Write(ulong va, ReadOnlySpan<byte> data) + { + throw new NotImplementedException(); + } + + public ReadOnlySpan<byte> GetSpan(ulong va, int size, bool tracked = false) + { + throw new NotImplementedException(); + } + + public WritableRegion GetWritableRegion(ulong va, int size) + { + throw new NotImplementedException(); + } + + public ref T GetRef<T>(ulong va) where T : unmanaged + { + throw new NotImplementedException(); + } + 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 bool IsMapped(ulong va) + { + return true; + } + public bool IsRangeMapped(ulong va, ulong size) { return true; } + public ulong GetPhysicalAddress(ulong va) + { + throw new NotImplementedException(); + } + public void TrackingReprotect(ulong va, ulong size, MemoryPermission protection) { - } } } |