aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/Cache/JitSupportDarwin.cs
blob: 06c81045decbbf917b5f56b1e3f96b70f118e1b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;

namespace Ryujinx.Cpu.LightningJit.Cache
{
    [SupportedOSPlatform("macos")]
    static partial class JitSupportDarwin
    {
        [LibraryImport("libarmeilleure-jitsupport", EntryPoint = "armeilleure_jit_memcpy")]
        public static partial void Copy(IntPtr dst, IntPtr src, ulong n);

        [LibraryImport("libc", EntryPoint = "sys_icache_invalidate", SetLastError = true)]
        public static partial void SysIcacheInvalidate(IntPtr start, IntPtr len);
    }
}