mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 17:25:48 +00:00
43 lines
2 KiB
C#
43 lines
2 KiB
C#
|
using Ryujinx.Cpu.Tracking;
|
|||
|
using Ryujinx.Memory;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Ryujinx.Cpu
|
|||
|
{
|
|||
|
public interface IVirtualMemoryManagerTracked : IVirtualMemoryManager
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Writes data to CPU mapped memory, without write tracking.
|
|||
|
/// </summary>
|
|||
|
/// <param name="va">Virtual address to write the data into</param>
|
|||
|
/// <param name="data">Data to be written</param>
|
|||
|
void WriteUntracked(ulong va, ReadOnlySpan<byte> data);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Obtains a memory tracking handle for the given virtual region. This should be disposed when finished with.
|
|||
|
/// </summary>
|
|||
|
/// <param name="address">CPU virtual address of the region</param>
|
|||
|
/// <param name="size">Size of the region</param>
|
|||
|
/// <returns>The memory tracking handle</returns>
|
|||
|
CpuRegionHandle BeginTracking(ulong address, ulong size);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Obtains a memory tracking handle for the given virtual region, with a specified granularity. This should be disposed when finished with.
|
|||
|
/// </summary>
|
|||
|
/// <param name="address">CPU virtual address of the region</param>
|
|||
|
/// <param name="size">Size of the region</param>
|
|||
|
/// <param name="granularity">Desired granularity of write tracking</param>
|
|||
|
/// <returns>The memory tracking handle</returns>
|
|||
|
CpuMultiRegionHandle BeginGranularTracking(ulong address, ulong size, ulong granularity);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Obtains a smart memory tracking handle for the given virtual region, with a specified granularity. This should be disposed when finished with.
|
|||
|
/// </summary>
|
|||
|
/// <param name="address">CPU virtual address of the region</param>
|
|||
|
/// <param name="size">Size of the region</param>
|
|||
|
/// <param name="granularity">Desired granularity of write tracking</param>
|
|||
|
/// <returns>The memory tracking handle</returns>
|
|||
|
CpuSmartMultiRegionHandle BeginSmartGranularTracking(ulong address, ulong size, ulong granularity);
|
|||
|
}
|
|||
|
}
|