Class SimulatorThread

java.lang.Object
java.lang.Thread
mars.simulator.SimulatorThread
All Implemented Interfaces:
Runnable

public class SimulatorThread extends Thread
Thread subclass to perform MIPS simulation in the background. The thread can be interrupted using either Simulator.pause() or Simulator.terminate().
Author:
Pete Sanderson, August 2005; Sean Clarke, April 2024
  • Constructor Details

    • SimulatorThread

      public SimulatorThread(Simulator simulator, int maxSteps, int[] breakPoints)
      Create a new SimulatorThread without starting it.
      Parameters:
      maxSteps - Maximum number of instruction steps to simulate. Default of -1 means no maximum.
      breakPoints - Array of breakpoints (instruction addresses) specified by user.
  • Method Details