diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:46 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:46 -0500 |
commit | fca4fea769c09add919099e5ede694145c5c5f77 (patch) | |
tree | 3f8a4564eeaa6503fdb84575081400908b5076a5 /src/cpu/o3/lsq_unit_impl.hh | |
parent | fb52ea9220f307de18da6565a2cbbaf67ba2b7a7 (diff) | |
download | gem5-fca4fea769c09add919099e5ede694145c5c5f77.tar.xz |
cpu: Fix O3 LSQ debug dumping constness and formatting
Diffstat (limited to 'src/cpu/o3/lsq_unit_impl.hh')
-rw-r--r-- | src/cpu/o3/lsq_unit_impl.hh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 799759557..d640f94a3 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -1228,7 +1228,7 @@ LSQUnit<Impl>::recvRetry() template <class Impl> inline void -LSQUnit<Impl>::incrStIdx(int &store_idx) +LSQUnit<Impl>::incrStIdx(int &store_idx) const { if (++store_idx >= SQEntries) store_idx = 0; @@ -1236,7 +1236,7 @@ LSQUnit<Impl>::incrStIdx(int &store_idx) template <class Impl> inline void -LSQUnit<Impl>::decrStIdx(int &store_idx) +LSQUnit<Impl>::decrStIdx(int &store_idx) const { if (--store_idx < 0) store_idx += SQEntries; @@ -1244,7 +1244,7 @@ LSQUnit<Impl>::decrStIdx(int &store_idx) template <class Impl> inline void -LSQUnit<Impl>::incrLdIdx(int &load_idx) +LSQUnit<Impl>::incrLdIdx(int &load_idx) const { if (++load_idx >= LQEntries) load_idx = 0; @@ -1252,7 +1252,7 @@ LSQUnit<Impl>::incrLdIdx(int &load_idx) template <class Impl> inline void -LSQUnit<Impl>::decrLdIdx(int &load_idx) +LSQUnit<Impl>::decrLdIdx(int &load_idx) const { if (--load_idx < 0) load_idx += LQEntries; @@ -1260,7 +1260,7 @@ LSQUnit<Impl>::decrLdIdx(int &load_idx) template <class Impl> void -LSQUnit<Impl>::dumpInsts() +LSQUnit<Impl>::dumpInsts() const { cprintf("Load store queue: Dumping instructions.\n"); cprintf("Load queue size: %i\n", loads); @@ -1269,10 +1269,12 @@ LSQUnit<Impl>::dumpInsts() int load_idx = loadHead; while (load_idx != loadTail && loadQueue[load_idx]) { - cprintf("%s ", loadQueue[load_idx]->pcState()); + const DynInstPtr &inst(loadQueue[load_idx]); + cprintf("%s.[sn:%i] ", inst->pcState(), inst->seqNum); incrLdIdx(load_idx); } + cprintf("\n"); cprintf("Store queue size: %i\n", stores); cprintf("Store queue: "); @@ -1280,7 +1282,8 @@ LSQUnit<Impl>::dumpInsts() int store_idx = storeHead; while (store_idx != storeTail && storeQueue[store_idx].inst) { - cprintf("%s ", storeQueue[store_idx].inst->pcState()); + const DynInstPtr &inst(storeQueue[store_idx].inst); + cprintf("%s.[sn:%i] ", inst->pcState(), inst->seqNum); incrStIdx(store_idx); } |