mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-14 03:06:28 +02:00
Add NCE code
This commit is contained in:
parent
9658525434
commit
1aff88648e
40 changed files with 2703 additions and 41 deletions
13
src/Ryujinx.Cpu/Nce/NceMemoryAllocator.cs
Normal file
13
src/Ryujinx.Cpu/Nce/NceMemoryAllocator.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue