mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-05 23:06:26 +02:00
13 lines
431 B
C#
13 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();
|
|
}
|
|
}
|