@@ -7,27 +7,25 @@ public class StepReport {
77
88 public Memory [] core ;
99 protected WarriorExecutor warrior ;
10- protected int numProc ;
1110
1211 protected int [] readAddr ;
13- protected int [] indirReadAddr ;
1412 protected int [] writeAddr ;
1513 protected int [] decAddr ;
1614 protected int [] incAddr ;
1715
1816 protected int numRead ;
19- protected int numIndirRead ;
2017 protected int numWrite ;
2118 protected int numDec ;
2219 protected int numInc ;
2320
21+ protected int numProc ;
2422 protected int execAddr ;
23+
2524 protected boolean pDie ;
2625 protected boolean wDeath ;
2726
2827 protected final static int MAX_READS = 4 ;
2928 protected final static int MAX_WRITES = 4 ;
30- protected final static int MAX_INDIR_READS = 4 ;
3129 protected final static int MAX_DECS = 5 ;
3230 protected final static int MAX_INCS = 5 ;
3331
@@ -39,13 +37,11 @@ public StepReport(Memory[] core, WarriorExecutor warrior) {
3937 this .warrior = warrior ;
4038
4139 readAddr = new int [MAX_READS ];
42- indirReadAddr = new int [MAX_INDIR_READS ];
4340 writeAddr = new int [MAX_WRITES ];
4441 decAddr = new int [MAX_DECS ];
4542 incAddr = new int [MAX_INCS ];
4643
4744 numRead = 0 ;
48- numIndirRead = 0 ;
4945 numWrite = 0 ;
5046 numDec = 0 ;
5147 numInc = 0 ;
@@ -76,15 +72,6 @@ public void read(int addr) {
7672 numRead ++;
7773 }
7874
79- /**
80- * Set a location read from indirection
81- * @param addr - address of location read
82- */
83- public void indirRead (int addr ) {
84- indirReadAddr [numIndirRead ] = addr ;
85- numIndirRead ++;
86- }
87-
8875 /**
8976 * Set a location that was written to
9077 * @param addr - address written to
@@ -160,16 +147,6 @@ public int[] addrRead() {
160147 return value ;
161148 }
162149
163- /**
164- * Get the addresses read through indirection
165- * @return int[] - array of addresses
166- */
167- public int [] addrIndirRead () {
168- int [] value = new int [numIndirRead ];
169- if (numIndirRead >= 0 ) System .arraycopy (indirReadAddr , 0 , value , 0 , numIndirRead );
170- return value ;
171- }
172-
173150 /**
174151 * Get the addresses written to
175152 * @return int[] - array of addresses
0 commit comments