From 27ce54ed80dbf1f9bc15741b01b1e3ecc9fd739f Mon Sep 17 00:00:00 2001 From: MayneMei <69469280+MayneMei@users.noreply.github.com> Date: Sun, 1 Dec 2024 23:57:12 -0800 Subject: [PATCH] store_buffer_initialization --- core/LSU.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/LSU.cpp b/core/LSU.cpp index 7cf3633f..6b489247 100644 --- a/core/LSU.cpp +++ b/core/LSU.cpp @@ -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)) @@ -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()