LSQ: Add some better dprintfs for storeset predictor.
authorMrinmoy Ghosh <Mrinmoy.Ghosh@arm.com>
Fri, 19 Aug 2011 20:08:05 +0000 (15:08 -0500)
committerMrinmoy Ghosh <Mrinmoy.Ghosh@arm.com>
Fri, 19 Aug 2011 20:08:05 +0000 (15:08 -0500)
src/cpu/o3/commit_impl.hh
src/cpu/o3/mem_dep_unit.hh
src/cpu/o3/mem_dep_unit_impl.hh

index c0946c16fabf83d29c0adabd80c8c690367b7dc2..0d9952df49afc42fcd0c90ac08218595cd21cffe 100644 (file)
@@ -1189,8 +1189,8 @@ DefaultCommit<Impl>::commitHead(DynInstPtr &head_inst, unsigned inst_num)
         }
     }
 #endif
-    DPRINTF(Commit, "Committing instruction with [sn:%lli]\n",
-            head_inst->seqNum);
+    DPRINTF(Commit, "Committing instruction with [sn:%lli] PC %s\n",
+            head_inst->seqNum, head_inst->pcState());
     if (head_inst->traceData) {
         head_inst->traceData->setFetchSeq(head_inst->seqNum);
         head_inst->traceData->setCPSeq(thread[tid]->numInst);
index 5d6f0a1599927843e5b68eacc672bfe333690abd..7d00369d30350bf839da5cd3c51ccd5a3b547db9 100644 (file)
@@ -169,7 +169,7 @@ class MemDepUnit
             ++memdep_count;
 
             DPRINTF(MemDepUnit, "Memory dependency entry created.  "
-                    "memdep_count=%i\n", memdep_count);
+                    "memdep_count=%i %s\n", memdep_count, inst->pcState());
 #endif
         }
 
@@ -183,7 +183,7 @@ class MemDepUnit
             --memdep_count;
 
             DPRINTF(MemDepUnit, "Memory dependency entry deleted.  "
-                    "memdep_count=%i\n", memdep_count);
+                    "memdep_count=%i %s\n", memdep_count, inst->pcState());
 #endif
         }
 
index bb4264a92d93e1d9117475fb52d21b8444d94678..0208a622e3640df5b86d6688a5849c5b5691ba53 100644 (file)
@@ -285,7 +285,8 @@ MemDepUnit<MemDepPred, Impl>::insertBarrier(DynInstPtr &barr_inst)
         loadBarrierSN = barr_sn;
         storeBarrier = true;
         storeBarrierSN = barr_sn;
-        DPRINTF(MemDepUnit, "Inserted a memory barrier\n");
+        DPRINTF(MemDepUnit, "Inserted a memory barrier %s SN:%lli\n",
+                barr_inst->pcState(),barr_sn);
     } else if (barr_inst->isWriteBarrier()) {
         storeBarrier = true;
         storeBarrierSN = barr_sn;