public MethodCacheInfo(MethodCache MethodCache, Action<CpuThreadState> DelegateGeneratorForPC, uint PC) { this.MethodCache = MethodCache; this.FunctionDelegate = DelegateGeneratorForPC; this.StaticField = ILInstanceHolder.TAlloc<Action<CpuThreadState>>(DelegateGeneratorForPC); this.PC = PC; }
public MethodCacheInfo(MethodCache methodCache, Action <CpuThreadState> delegateGeneratorForPc, uint pc) { MethodCache = methodCache; _functionDelegate = delegateGeneratorForPc; StaticField = IlInstanceHolder.TaAlloc(delegateGeneratorForPc); Pc = pc; }
public MethodCompilerThread(CpuProcessor cpuProcessor, MethodCache methodCache) { _cpuProcessor = cpuProcessor; _methodCache = methodCache; var thread = new Thread(Main) { Name = "MethodCompilerThread", IsBackground = true }; thread.Start(); }
public MethodCompilerThread(CpuProcessor CpuProcessor, MethodCache MethodCache) { this.CpuProcessor = CpuProcessor; this.MethodCache = MethodCache; this.Thread = new Thread(Main) { IsBackground = true }; this.Thread.Start(); }
/// <summary> /// /// </summary> /// <param name="Processor"></param> public CpuThreadState(CpuProcessor Processor) { this.CpuProcessor = Processor; this.MethodCache = Processor.MethodCache; //this.Memory = Processor.Memory; GPR = new GprList() { CpuThreadState = this }; FPR = new FprList() { CpuThreadState = this }; C0R = new C0rList() { CpuThreadState = this }; FPR_I = new FprListInteger() { CpuThreadState = this }; Vfpr = new VfprList() { CpuThreadState = this }; for (int n = 0; n < 32; n++) { GPR[n] = 0; FPR[n] = 0.0f; } }
/// <summary> /// /// </summary> /// <param name="Processor"></param> public CpuThreadState(CpuProcessor Processor) { this.CpuProcessor = Processor; this.MethodCache = Processor.MethodCache; //this.Memory = Processor.Memory; GPR = new GprList() { CpuThreadState = this }; FPR = new FprList() { CpuThreadState = this }; C0R = new C0rList() { CpuThreadState = this }; FPR_I = new FprListInteger() { CpuThreadState = this }; Vfpr = new VfprList() { CpuThreadState = this }; for (int n = 0; n < 32; n++) { GPR[n] = 0; FPR[n] = 0.0f; } VFR_CC_7 = VFR_CC_6 = VFR_CC_5 = VFR_CC_4 = VFR_CC_3 = VFR_CC_2 = VFR_CC_1 = VFR_CC_0 = true; for (int n = 0; n < 128; n++) { Vfpr[n] = 0.0f; } }