forked from MeloNX/MeloNX
Fix more warnings
This commit is contained in:
parent
339d9ca83d
commit
689eadaece
@ -5,7 +5,7 @@ using System.Runtime.Versioning;
|
|||||||
namespace ARMeilleure.Native
|
namespace ARMeilleure.Native
|
||||||
{
|
{
|
||||||
[SupportedOSPlatform("macos")]
|
[SupportedOSPlatform("macos")]
|
||||||
public static partial class JitSupportDarwin
|
static partial class JitSupportDarwin
|
||||||
{
|
{
|
||||||
[LibraryImport("libarmeilleure-jitsupport", EntryPoint = "armeilleure_jit_memcpy")]
|
[LibraryImport("libarmeilleure-jitsupport", EntryPoint = "armeilleure_jit_memcpy")]
|
||||||
public static partial void Copy(IntPtr dst, IntPtr src, ulong n);
|
public static partial void Copy(IntPtr dst, IntPtr src, ulong n);
|
||||||
|
@ -22,7 +22,6 @@ namespace Ryujinx.Cpu.LightningJit.Arm32
|
|||||||
|
|
||||||
RdnDn = Rdn | Dn,
|
RdnDn = Rdn | Dn,
|
||||||
RdRd16 = Rd | Rd16,
|
RdRd16 = Rd | Rd16,
|
||||||
RtRt16 = Rt | Rd16,
|
|
||||||
RtRt2 = Rt | Rt2,
|
RtRt2 = Rt | Rt2,
|
||||||
RdLoRdHi = RdLo | RdHi,
|
RdLoRdHi = RdLo | RdHi,
|
||||||
RdLoHi = Rd | RdHi,
|
RdLoHi = Rd | RdHi,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using ARMeilleure.Memory;
|
using ARMeilleure.Memory;
|
||||||
using ARMeilleure.Native;
|
|
||||||
using Ryujinx.Memory;
|
using Ryujinx.Memory;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
13
src/Ryujinx.Cpu/LightningJit/Cache/JitSupportDarwin.cs
Normal file
13
src/Ryujinx.Cpu/LightningJit/Cache/JitSupportDarwin.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
@ -13,7 +13,6 @@ namespace Ryujinx.Cpu.LightningJit.State
|
|||||||
internal IntPtr NativeContextPtr => _nativeContext.BasePtr;
|
internal IntPtr NativeContextPtr => _nativeContext.BasePtr;
|
||||||
|
|
||||||
private bool _interrupted;
|
private bool _interrupted;
|
||||||
|
|
||||||
private readonly ICounter _counter;
|
private readonly ICounter _counter;
|
||||||
|
|
||||||
public ulong Pc => _nativeContext.GetPc();
|
public ulong Pc => _nativeContext.GetPc();
|
||||||
@ -140,9 +139,15 @@ namespace Ryujinx.Cpu.LightningJit.State
|
|||||||
_nativeContext.SetCounter(0);
|
_nativeContext.SetCounter(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
protected virtual void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
_nativeContext.Dispose();
|
_nativeContext.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
Dispose(disposing: true);
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user