Example #1
0
 public void Reset()
 {
     MethodCache              = new MethodCacheFast();
     NativeBreakpoints        = new HashSet <uint>();
     RegisteredNativeSyscalls = new Dictionary <int, Action <int, CpuThreadState> >();
     IsRunning = true;
 }
Example #2
0
 public void Reset()
 {
     MethodCache = new MethodCacheFast();
     NativeBreakpoints = new HashSet<uint>();
     RegisteredNativeSyscalls = new Dictionary<int, Action<int, CpuThreadState>>();
     IsRunning = true;
 }
Example #3
0
        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;
        }
Example #4
0
 public HleThread(CpuThreadState CpuThreadState)
 {
     this.MethodCache = CpuThreadState.CpuProcessor.MethodCache;
     this.PspConfig = CpuThreadState.CpuProcessor.PspConfig;
     this.GreenThread = new GreenThread();
     this.CpuThreadState = CpuThreadState;
     this.PrepareThread();
 }