Example #1
0
        public ArmProcessContext(ulong pid, ICpuEngine cpuEngine, GpuContext gpuContext, T memoryManager, bool for64Bit)
        {
            if (memoryManager is IRefCounted rc)
            {
                rc.IncrementReferenceCount();
            }

            gpuContext.RegisterProcess(pid, memoryManager);

            _pid           = pid;
            _gpuContext    = gpuContext;
            _cpuContext    = cpuEngine.CreateCpuContext(memoryManager, for64Bit);
            _memoryManager = memoryManager;
        }
Example #2
0
 public ArmProcessContextFactory(ICpuEngine cpuEngine, GpuContext gpu)
 {
     _cpuEngine = cpuEngine;
     _gpu       = gpu;
 }