mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-19 21:35:55 +01:00
ddc9ae2a83
* Add VTimer as alternative interrupt method on Apple Hypervisor * Fix naming violations on TimeApi * Fix timer interval (was 16us rather than 16ms) * Fix delta ticks calculation * Missing ThrowOnError call * Add SupportedOSPlatform attribute on AppleHv classes
23 lines
548 B
C#
23 lines
548 B
C#
using ARMeilleure.Memory;
|
|
using System.Runtime.Versioning;
|
|
|
|
namespace Ryujinx.Cpu.AppleHv
|
|
{
|
|
[SupportedOSPlatform("macos")]
|
|
public class HvEngine : ICpuEngine
|
|
{
|
|
private readonly ITickSource _tickSource;
|
|
|
|
public HvEngine(ITickSource tickSource)
|
|
{
|
|
_tickSource = tickSource;
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public ICpuContext CreateCpuContext(IMemoryManager memoryManager, bool for64Bit)
|
|
{
|
|
return new HvCpuContext(_tickSource, memoryManager, for64Bit);
|
|
}
|
|
}
|
|
}
|