inorder: remove decode squash
authorKorey Sewell <ksewell@umich.edu>
Mon, 20 Jun 2011 01:43:37 +0000 (21:43 -0400)
committerKorey Sewell <ksewell@umich.edu>
Mon, 20 Jun 2011 01:43:37 +0000 (21:43 -0400)
also, cleanup comments for gem5.fast compilation

src/cpu/inorder/resources/decode_unit.cc
src/cpu/inorder/resources/decode_unit.hh
src/cpu/inorder/resources/execution_unit.cc

index 1ba5c204acf8ecc888837dc8f36e577b55c4aa06..d15428436374f67cf1cf9a70b27ccb59bbb74fc5 100644 (file)
@@ -54,7 +54,6 @@ DecodeUnit::execute(int slot_num)
 {
     ResourceRequest* decode_req = reqs[slot_num];
     DynInstPtr inst = reqs[slot_num]->inst;
-    ThreadID tid = inst->readTid();
 
     switch (decode_req->cmd)
     {
@@ -71,11 +70,12 @@ DecodeUnit::execute(int slot_num)
             if (inst->backSked != NULL) {
                 DPRINTF(InOrderDecode,
                     "[tid:%i]: Back End Schedule created for %s  [sn:%i].\n",
-                        tid, inst->instName(), inst->seqNum);
+                        inst->readTid(), inst->instName(), inst->seqNum);
                 decode_req->done();
             } else {
                 DPRINTF(Resource,
-                    "[tid:%i] Static Inst not available to decode.\n", tid);
+                    "[tid:%i] Static Inst not available to decode.\n",
+                        inst->readTid());
                 DPRINTF(Resource,
                     "Unable to create schedule for instruction [sn:%i] \n",
                     inst->seqNum);
@@ -90,14 +90,3 @@ DecodeUnit::execute(int slot_num)
     }
 }
 
-
-void
-DecodeUnit::squash(DynInstPtr inst, int stage_num, InstSeqNum squash_seq_num,
-                   ThreadID tid)
-{
-    DPRINTF(InOrderDecode,
-            "[tid:%i]: Updating due to squash from stage %i after [sn:%i].\n",
-            tid, stage_num, squash_seq_num);
-
-    //cpu->removeInstsUntil(squash_seq_num, tid);
-}
index 3742af3e250b8ae56a13044666faf6ea5b1e7809..084c0008fc68e491145edcb6e1e32f61b91fc853 100644 (file)
@@ -56,9 +56,6 @@ class DecodeUnit : public Resource {
 
     void execute(int slot_num);
 
-    void squash(DynInstPtr inst, int stage_num, InstSeqNum squash_seq_num,
-                ThreadID tid);
-
     RegDepMap *regDepMap[ThePipeline::MaxThreads];
 
   protected:
index d7151add194fd2ece687994095c3283c51f129dc..6b89c8230bb92d982340ab11978211970a9eb7e0 100644 (file)
@@ -88,9 +88,10 @@ ExecutionUnit::execute(int slot_num)
     ResourceRequest* exec_req = reqs[slot_num];
     DynInstPtr inst = reqs[slot_num]->inst;
     Fault fault = NoFault;
-    InstSeqNum seq_num = inst->seqNum;
     Tick cur_tick = curTick();
-
+#if TRACING_ON
+    InstSeqNum seq_num = inst->seqNum;
+#endif
     if (cur_tick == serializeTick) {
         DPRINTF(InOrderExecute, "Can not execute [tid:%i][sn:%i][PC:%s] %s. "
                 "All instructions are being serialized this cycle\n",