From d0e04859023702ec23c97683700c638949a1dad1 Mon Sep 17 00:00:00 2001 From: Mrinmoy Ghosh Date: Fri, 19 Aug 2011 15:08:05 -0500 Subject: [PATCH] LSQ: Add some better dprintfs for storeset predictor. --- src/cpu/o3/commit_impl.hh | 4 ++-- src/cpu/o3/mem_dep_unit.hh | 4 ++-- src/cpu/o3/mem_dep_unit_impl.hh | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index c0946c16f..0d9952df4 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -1189,8 +1189,8 @@ DefaultCommit::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); diff --git a/src/cpu/o3/mem_dep_unit.hh b/src/cpu/o3/mem_dep_unit.hh index 5d6f0a159..7d00369d3 100644 --- a/src/cpu/o3/mem_dep_unit.hh +++ b/src/cpu/o3/mem_dep_unit.hh @@ -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 } diff --git a/src/cpu/o3/mem_dep_unit_impl.hh b/src/cpu/o3/mem_dep_unit_impl.hh index bb4264a92..0208a622e 100644 --- a/src/cpu/o3/mem_dep_unit_impl.hh +++ b/src/cpu/o3/mem_dep_unit_impl.hh @@ -285,7 +285,8 @@ MemDepUnit::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; -- 2.30.2