From 14651e9857b1eb67d76882a3e18bfbd74dcd8589 Mon Sep 17 00:00:00 2001 From: Anzo <126764519+Anzooooo@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:31:40 +0800 Subject: [PATCH] fix(StoreQueue): remove the incorrect redirect logic (#4139) --- src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala b/src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala index f12f7ff308..62cd8f0515 100644 --- a/src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala +++ b/src/main/scala/xiangshan/mem/lsqueue/StoreQueue.scala @@ -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 }