aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Cpu/LightningJit/LightningJitEngine.cs
blob: c97ddc7c7c5b071cca89c1aaee2f4079b23fe194 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using ARMeilleure.Memory;

namespace Ryujinx.Cpu.LightningJit
{
    public class LightningJitEngine : ICpuEngine
    {
        private readonly ITickSource _tickSource;

        public LightningJitEngine(ITickSource tickSource)
        {
            _tickSource = tickSource;
        }

        /// <inheritdoc/>
        public ICpuContext CreateCpuContext(IMemoryManager memoryManager, bool for64Bit)
        {
            return new LightningJitCpuContext(_tickSource, memoryManager, for64Bit);
        }
    }
}