From 4594c3b31014655fb0b37f1305598fc3cbafdc73 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Tue, 8 Dec 2020 00:42:17 +0000 Subject: Signal memory tracking before/after mapping into another process (#1785) * Signal memory tracking before/after mapping into another process * Wording. * Add missing method. --- Ryujinx.Memory/AddressSpaceManager.cs | 5 +++++ Ryujinx.Memory/IVirtualMemoryManager.cs | 1 + 2 files changed, 6 insertions(+) (limited to 'Ryujinx.Memory') diff --git a/Ryujinx.Memory/AddressSpaceManager.cs b/Ryujinx.Memory/AddressSpaceManager.cs index c6d6cab5..50c7adad 100644 --- a/Ryujinx.Memory/AddressSpaceManager.cs +++ b/Ryujinx.Memory/AddressSpaceManager.cs @@ -545,5 +545,10 @@ namespace Ryujinx.Memory _pageTable[l0] = null; } } + + public void SignalMemoryTracking(ulong va, ulong size, bool write) + { + // Only the ARM Memory Manager has tracking for now. + } } } diff --git a/Ryujinx.Memory/IVirtualMemoryManager.cs b/Ryujinx.Memory/IVirtualMemoryManager.cs index 8c2296e2..e7e1a978 100644 --- a/Ryujinx.Memory/IVirtualMemoryManager.cs +++ b/Ryujinx.Memory/IVirtualMemoryManager.cs @@ -23,6 +23,7 @@ namespace Ryujinx.Memory bool IsRangeMapped(ulong va, ulong size); ulong GetPhysicalAddress(ulong va); + void SignalMemoryTracking(ulong va, ulong size, bool write); void TrackingReprotect(ulong va, ulong size, MemoryPermission protection); } } -- cgit v1.2.3