mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-29 15:19:48 +01:00
25 lines
733 B
C#
25 lines
733 B
C#
|
using ARMeilleure.State;
|
|||
|
using Ryujinx.Cpu;
|
|||
|
using Ryujinx.HLE.HOS.Kernel.Process;
|
|||
|
using Ryujinx.Memory;
|
|||
|
|
|||
|
namespace Ryujinx.HLE.HOS
|
|||
|
{
|
|||
|
class ArmProcessContext : IProcessContext
|
|||
|
{
|
|||
|
private readonly MemoryManager _memoryManager;
|
|||
|
private readonly CpuContext _cpuContext;
|
|||
|
|
|||
|
public IVirtualMemoryManager AddressSpace => _memoryManager;
|
|||
|
|
|||
|
public ArmProcessContext(MemoryManager memoryManager)
|
|||
|
{
|
|||
|
_memoryManager = memoryManager;
|
|||
|
_cpuContext = new CpuContext(memoryManager);
|
|||
|
}
|
|||
|
|
|||
|
public void Execute(ExecutionContext context, ulong codeAddress) => _cpuContext.Execute(context, codeAddress);
|
|||
|
public void Dispose() => _memoryManager.Dispose();
|
|||
|
}
|
|||
|
}
|