Skip to content

Commit

Permalink
fix(StoreQueue): remove the incorrect redirect logic (#4139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anzooooo authored Jan 7, 2025
1 parent 77733a7 commit 14651e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1375,8 +1375,7 @@ class StoreQueue(implicit p: Parameters) extends XSModule
// misprediction recovery / exception redirect
// invalidate sq term using robIdx
for (i <- 0 until StoreQueueSize) {
needCancel(i) := uop(i).robIdx.needFlush(io.brqRedirect) && allocated(i) && !committed(i) &&
(!isVec(i) || !(uop(i).robIdx === io.brqRedirect.bits.robIdx))
needCancel(i) := uop(i).robIdx.needFlush(io.brqRedirect) && allocated(i) && !committed(i)
when (needCancel(i)) {
allocated(i) := false.B
}
Expand Down

0 comments on commit 14651e9

Please sign in to comment.