Skip to content

Commit b4b60d3

Browse files
committed
different debug info
1 parent d6c92b5 commit b4b60d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/lsu/LSU.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ namespace olympia
277277

278278
if (inst_ptr->isStoreInst())
279279
{
280+
std::cout << "RETIRE: Buffer size before:" << store_buffer_.size()
281+
<< " UID:" << inst_ptr->getUniqueID() << "\n";
280282
auto oldest_store = getOldestStore_();
281283
sparta_assert(oldest_store && oldest_store->getInstPtr()->getUniqueID() == inst_ptr->getUniqueID(),
282284
"Attempting to retire store out of order! Expected: "
@@ -935,9 +937,7 @@ namespace olympia
935937

936938
void LSU::allocateInstToStoreBuffer_(const InstPtr & inst_ptr)
937939
{
938-
std::cout << "Creating store info for UID: " << inst_ptr->getUniqueID() << "\n";
939940
const auto & store_info_ptr = createLoadStoreInst_(inst_ptr);
940-
std::cout << "Store info created: " << (store_info_ptr != nullptr) << "\n";
941941

942942
sparta_assert(store_buffer_.size() < ldst_inst_queue_size_,
943943
"Appending store buffer causes overflows!");
@@ -1441,6 +1441,7 @@ namespace olympia
14411441

14421442
void LSU::flushStoreBuffer_(const FlushCriteria & criteria)
14431443
{
1444+
std::cout << "FLUSH: Store buffer size before:" << store_buffer_.size() << "\n";
14441445
auto sb_iter = store_buffer_.begin();
14451446
while(sb_iter != store_buffer_.end()) {
14461447
auto inst_ptr = (*sb_iter)->getInstPtr();
@@ -1453,6 +1454,7 @@ namespace olympia
14531454
++sb_iter;
14541455
}
14551456
}
1457+
std::cout << "FLUSH: Store buffer size after:" << store_buffer_.size() << "\n";
14561458
}
14571459

14581460
} // namespace olympia

0 commit comments

Comments
 (0)