Skip to content

Commit d7df290

Browse files
committed
chagne erase to pop front(), don't have local machine right now so only can test by using auto regression test
1 parent a27fa71 commit d7df290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/lsu/LSU.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ namespace olympia
284284
<< " Got: " << inst_ptr->getUniqueID());
285285

286286
// Remove from store buffer -> don't actually need to send cache request
287-
store_buffer_.erase(store_buffer_.begin());;
287+
sparta_assert(store_buffer_.size() > 0, "Store buffer empty on retiring store");
288+
store_buffer_.pop_front();
288289
++stores_retired_;
289290
}
290291

0 commit comments

Comments
 (0)