mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 10:05:25 +00: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();
|
|||
|
}
|
|||
|
}
|