diff options
Diffstat (limited to 'Ryujinx.Cpu/JitMemoryAllocator.cs')
-rw-r--r-- | Ryujinx.Cpu/JitMemoryAllocator.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.Cpu/JitMemoryAllocator.cs b/Ryujinx.Cpu/JitMemoryAllocator.cs new file mode 100644 index 00000000..26ccd732 --- /dev/null +++ b/Ryujinx.Cpu/JitMemoryAllocator.cs @@ -0,0 +1,11 @@ +using ARMeilleure.Memory; +using Ryujinx.Memory; + +namespace Ryujinx.Cpu +{ + class JitMemoryAllocator : IJitMemoryAllocator + { + public IJitMemoryBlock Allocate(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.None); + public IJitMemoryBlock Reserve(ulong size) => new JitMemoryBlock(size, MemoryAllocationFlags.Reserve); + } +} |