Inheritance: IInjectInitialize
示例#1
0
 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;
 }
示例#2
0
 public MethodCacheInfo(MethodCache methodCache, Action <CpuThreadState> delegateGeneratorForPc, uint pc)
 {
     MethodCache       = methodCache;
     _functionDelegate = delegateGeneratorForPc;
     StaticField       = IlInstanceHolder.TaAlloc(delegateGeneratorForPc);
     Pc = pc;
 }
示例#3
0
        public MethodCompilerThread(CpuProcessor cpuProcessor, MethodCache methodCache)
        {
            _cpuProcessor = cpuProcessor;
            _methodCache  = methodCache;
            var thread = new Thread(Main)
            {
                Name         = "MethodCompilerThread",
                IsBackground = true
            };

            thread.Start();
        }
示例#4
0
 public MethodCompilerThread(CpuProcessor CpuProcessor, MethodCache MethodCache)
 {
     this.CpuProcessor = CpuProcessor;
     this.MethodCache = MethodCache;
     this.Thread = new Thread(Main)
     {
         IsBackground = true
     };
     this.Thread.Start();
 }
示例#5
0
		/// <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;
			}
		}
示例#6
0
        /// <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;
            }
        }