Skip to content

Commit

Permalink
Dont allow loads to continue until stores are retired
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lyalg0rithm committed Oct 13, 2023
1 parent 11626be commit 31fdf29
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 @@ -423,6 +423,11 @@ namespace olympia
return;
}

if(!inst_ptr->isStoreInst() && olderStoresExists(inst_ptr) && !allow_speculative_load_exec_){
ldst_pipeline_.invalidateStage(static_cast<uint32_t>(CACHE_LOOKUP));
return;
}

const bool is_already_hit =
(mem_access_info_ptr->getCacheState() == MemoryAccessInfo::CacheState::HIT);
const bool is_unretired_store =
Expand Down

0 comments on commit 31fdf29

Please sign in to comment.