diff options
Diffstat (limited to 'src/Ryujinx.Memory')
| -rw-r--r-- | src/Ryujinx.Memory/AddressSpaceManager.cs | 5 | ||||
| -rw-r--r-- | src/Ryujinx.Memory/IVirtualMemoryManager.cs | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/Ryujinx.Memory/AddressSpaceManager.cs b/src/Ryujinx.Memory/AddressSpaceManager.cs index 65b4d48f..b8d48365 100644 --- a/src/Ryujinx.Memory/AddressSpaceManager.cs +++ b/src/Ryujinx.Memory/AddressSpaceManager.cs @@ -456,6 +456,11 @@ namespace Ryujinx.Memory } /// <inheritdoc/> + public void Reprotect(ulong va, ulong size, MemoryPermission protection) + { + } + + /// <inheritdoc/> public void TrackingReprotect(ulong va, ulong size, MemoryPermission protection) { throw new NotImplementedException(); diff --git a/src/Ryujinx.Memory/IVirtualMemoryManager.cs b/src/Ryujinx.Memory/IVirtualMemoryManager.cs index edbfc885..8c9ca168 100644 --- a/src/Ryujinx.Memory/IVirtualMemoryManager.cs +++ b/src/Ryujinx.Memory/IVirtualMemoryManager.cs @@ -104,6 +104,12 @@ namespace Ryujinx.Memory /// <returns>True if the data was changed, false otherwise</returns> bool WriteWithRedundancyCheck(ulong va, ReadOnlySpan<byte> data); + /// <summary> + /// Fills the specified memory region with the value specified in <paramref name="value"/>. + /// </summary> + /// <param name="va">Virtual address to fill the value into</param> + /// <param name="size">Size of the memory region to fill</param> + /// <param name="value">Value to fill with</param> void Fill(ulong va, ulong size, byte value) { const int MaxChunkSize = 1 << 24; @@ -195,6 +201,14 @@ namespace Ryujinx.Memory void SignalMemoryTracking(ulong va, ulong size, bool write, bool precise = false, int? exemptId = null); /// <summary> + /// Reprotect a region of virtual memory for guest access. + /// </summary> + /// <param name="va">Virtual address base</param> + /// <param name="size">Size of the region to protect</param> + /// <param name="protection">Memory protection to set</param> + void Reprotect(ulong va, ulong size, MemoryPermission protection); + + /// <summary> /// Reprotect a region of virtual memory for tracking. /// </summary> /// <param name="va">Virtual address base</param> |
