Package com.zylin.zpu.simulator

Examples of com.zylin.zpu.simulator.State


    public StatKeeper(Machine simulator)
    {
        this.simulator=simulator;
    for (int i=0; i<state.length; i++)
    {
      state[i]=new State();
    }
    }
View Full Code Here


    /**
   * this instruction has been retired. Count it.
   */
  public void countInstruction(int instruction)
  {
    State currentState=state[trackPos%state.length];
    currentState.cycle=simulator.getPrevCycles(); // start of instruction
    currentState.insn=instruction;
    trackPos++;
        int backtrackNum;
    backtrackNum=Math.min(trackPos, state.length);
View Full Code Here

TOP

Related Classes of com.zylin.zpu.simulator.State

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.