mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-10 12:49:13 +00:00
733b6b340b
Allows the same dynamic module (NRO) to always be remapped to the same base address, so that the Translator can reuse the same dynamic functions in it, without having to retranslate them and thus without having to add them back into the Jit Cache.
53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using ARMeilleure.Memory;
|
|
using System;
|
|
|
|
namespace Ryujinx.Tests.Memory
|
|
{
|
|
internal class MockMemoryManager : IMemoryManager
|
|
{
|
|
public int AddressSpaceBits => throw new NotImplementedException();
|
|
|
|
public IntPtr PageTablePointer => throw new NotImplementedException();
|
|
|
|
public MemoryManagerType Type => MemoryManagerType.HostMappedUnsafe;
|
|
|
|
#pragma warning disable CS0067
|
|
public event Action<ulong, ulong, bool> UnmapEvent;
|
|
#pragma warning restore CS0067
|
|
|
|
public ref T GetRef<T>(ulong va) where T : unmanaged
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public ReadOnlySpan<byte> GetSpan(ulong va, int size, bool tracked = false)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public bool IsMapped(ulong va)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public T Read<T>(ulong va) where T : unmanaged
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public T ReadTracked<T>(ulong va) where T : unmanaged
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void SignalMemoryTracking(ulong va, ulong size, bool write, bool precise = false)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void Write<T>(ulong va, T value) where T : unmanaged
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|