mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-29 00:57:56 +02:00
14 lines
431 B
C#
14 lines
431 B
C#
using ARMeilleure.Memory;
|
|
using Ryujinx.Memory;
|
|
|
|
namespace Ryujinx.Cpu.Nce
|
|
{
|
|
class NceMemoryAllocator : IJitMemoryAllocator
|
|
{
|
|
public IJitMemoryBlock Allocate(ulong size) => new NceMemoryBlock(size, MemoryAllocationFlags.None);
|
|
public IJitMemoryBlock Reserve(ulong size) => new NceMemoryBlock(size, MemoryAllocationFlags.Reserve);
|
|
|
|
public ulong GetPageSize() => MemoryBlock.GetPageSize();
|
|
}
|
|
}
|