diff options
Diffstat (limited to 'Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs')
-rw-r--r-- | Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs index 245d365e..5051b206 100644 --- a/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs +++ b/Ryujinx.Memory.Tests/MockVirtualMemoryManager.cs @@ -1,4 +1,6 @@ -using System; +using Ryujinx.Memory.Range; +using System; +using System.Collections.Generic; namespace Ryujinx.Memory.Tests { @@ -12,7 +14,7 @@ namespace Ryujinx.Memory.Tests { } - public void Map(ulong va, ulong pa, ulong size) + public void Map(ulong va, nuint hostAddress, ulong size) { throw new NotImplementedException(); } @@ -57,9 +59,9 @@ namespace Ryujinx.Memory.Tests throw new NotImplementedException(); } - public (ulong address, ulong size)[] GetPhysicalRegions(ulong va, ulong size) + IEnumerable<HostMemoryRange> IVirtualMemoryManager.GetPhysicalRegions(ulong va, ulong size) { - return NoMappings ? new (ulong address, ulong size)[0] : new (ulong address, ulong size)[] { (va, size) }; + return NoMappings ? new HostMemoryRange[0] : new HostMemoryRange[] { new HostMemoryRange((nuint)va, size) }; } public bool IsMapped(ulong va) |