Skip to content

Commit

Permalink
store_buffer_initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
MayneMei authored Dec 2, 2024
1 parent ed13f0b commit 27ce54e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/LSU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace olympia
// store_buffer_("store_buffer", p->ldst_inst_queue_size, getClock()), // Add this line
// store_buffer_size_(p->ldst_inst_queue_size),
ready_queue_(),
store_buffer_(),
load_store_info_allocator_(sparta::notNull(OlympiaAllocators::getOlympiaAllocators(node))
->load_store_info_allocator),
memory_access_allocator_(sparta::notNull(OlympiaAllocators::getOlympiaAllocators(node))
Expand Down Expand Up @@ -275,6 +276,10 @@ namespace olympia
sparta_assert(inst_ptr->getStatus() == Inst::Status::RETIRED,
"Get ROB Ack, but the store inst hasn't retired yet!");

if(inst_ptr->getStatus() != Inst::Status::RETIRED) {
return;
}

if (inst_ptr->isStoreInst())
{
std::cout << "RETIRE: Buffer size before:" << store_buffer_.size()
Expand Down

0 comments on commit 27ce54e

Please sign in to comment.