29 lines
807 B
Java
Executable File
29 lines
807 B
Java
Executable File
package emulatorinterface;
|
|
|
|
import generic.GenericCircularQueue;
|
|
import generic.Instruction;
|
|
|
|
public class EmulatorThreadState {
|
|
|
|
boolean finished;
|
|
public boolean started = false;
|
|
boolean halted = false;
|
|
boolean isFirstPacket = true;
|
|
boolean fetchStatus = false; //true when #{packets} fetched by T_java (for T_app) > threshold else false
|
|
//int readerLocation;
|
|
long totalRead;
|
|
|
|
// We are assuming that one assembly instruction can have atmost 50 micro-operations.
|
|
// Its an over-estimation.
|
|
GenericCircularQueue<Instruction> outstandingMicroOps = new GenericCircularQueue<Instruction>(Instruction.class, 50);
|
|
|
|
// Packet pold = new Packet();
|
|
EmulatorPacketList packetList = new EmulatorPacketList();
|
|
|
|
public void checkStarted() {
|
|
if (this.isFirstPacket) {
|
|
this.started = true;
|
|
}
|
|
}
|
|
}
|