Skip to content

Commit 575256d

Browse files
committed
store_buffer_initialization
1 parent b4b60d3 commit 575256d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/lsu/LSU.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace olympia
2323
// store_buffer_("store_buffer", p->ldst_inst_queue_size, getClock()), // Add this line
2424
// store_buffer_size_(p->ldst_inst_queue_size),
2525
ready_queue_(),
26+
store_buffer_(),
2627
load_store_info_allocator_(sparta::notNull(OlympiaAllocators::getOlympiaAllocators(node))
2728
->load_store_info_allocator),
2829
memory_access_allocator_(sparta::notNull(OlympiaAllocators::getOlympiaAllocators(node))
@@ -275,6 +276,10 @@ namespace olympia
275276
sparta_assert(inst_ptr->getStatus() == Inst::Status::RETIRED,
276277
"Get ROB Ack, but the store inst hasn't retired yet!");
277278

279+
if(inst_ptr->getStatus() != Inst::Status::RETIRED) {
280+
return;
281+
}
282+
278283
if (inst_ptr->isStoreInst())
279284
{
280285
std::cout << "RETIRE: Buffer size before:" << store_buffer_.size()

0 commit comments

Comments
 (0)