public void Reset() { MethodCache = new MethodCacheFast(); NativeBreakpoints = new HashSet <uint>(); RegisteredNativeSyscalls = new Dictionary <int, Action <int, CpuThreadState> >(); IsRunning = true; }
public void Reset() { MethodCache = new MethodCacheFast(); NativeBreakpoints = new HashSet<uint>(); RegisteredNativeSyscalls = new Dictionary<int, Action<int, CpuThreadState>>(); IsRunning = true; }
public HleThread(PspEmulatorContext PspEmulatorContext, CpuThreadState CpuThreadState) { this.HleInterruptManager = PspEmulatorContext.GetInstance<HleInterruptManager>(); this.HleThreadManager = PspEmulatorContext.GetInstance<HleThreadManager>(); this.MethodCache = CpuThreadState.CpuProcessor.MethodCache; this.PspConfig = CpuThreadState.CpuProcessor.PspConfig; if (this.PspConfig.UseCoRoutines) { this.Coroutine = HleThreadManager.Processor.CoroutinePool.CreateCoroutine(this.Name, MainLoop); } else { this.GreenThread = new GreenThread(); GreenThread.InitAndStartStopped(MainLoop); } this.CpuThreadState = CpuThreadState; }
public HleThread(CpuThreadState CpuThreadState) { this.MethodCache = CpuThreadState.CpuProcessor.MethodCache; this.PspConfig = CpuThreadState.CpuProcessor.PspConfig; this.GreenThread = new GreenThread(); this.CpuThreadState = CpuThreadState; this.PrepareThread(); }