Skip to content

Commit

Permalink
[lsu] Don't allow MMIO loads to proceed while they have a dependent s…
Browse files Browse the repository at this point in the history
…tore.
  • Loading branch information
jerryz123 committed Jul 22, 2019
1 parent 11c3366 commit d0c5520
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/lsu/lsu.scala
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ class LoadStoreUnit(pl_width: Int)(implicit p: Parameters,
laq_allocated (exe_ld_idx_wakeup) &&
!laq_executed (exe_ld_idx_wakeup) &&
!laq_failure (exe_ld_idx_wakeup) &&
(!laq_is_uncacheable(exe_ld_idx_wakeup) || (io.commit_load_at_rob_head && laq_head === exe_ld_idx_wakeup))
(!laq_is_uncacheable(exe_ld_idx_wakeup) || (io.commit_load_at_rob_head &&
laq_head === exe_ld_idx_wakeup &&
laq_st_dep_mask(exe_ld_idx_wakeup).asUInt === 0.U))
)
{
can_fire_load_wakeup := true.B
Expand Down

0 comments on commit d0c5520

Please sign in to comment.