mirror of
https://git.zaroz.cloud/nintendo-back-up/Ryujinx.git
synced 2025-12-17 16:02:40 +00:00
14 lines
463 B
C#
14 lines
463 B
C#
using ARMeilleure.Memory;
|
|
using Ryujinx.Memory;
|
|
|
|
namespace Ryujinx.Cpu.Jit
|
|
{
|
|
public class JitMemoryAllocator : IJitMemoryAllocator
|
|
{
|
|
public IJitMemoryBlock Allocate(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.None);
|
|
public IJitMemoryBlock Reserve(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.Reserve | MemoryAllocationFlags.Jit);
|
|
|
|
public ulong GetPageSize() => MemoryBlock.GetPageSize();
|
|
}
|
|
}
|