Skip to content

Commit

Permalink
fix(VMergeBuffer): uopFinish should not be set when redirect (#3924)
Browse files Browse the repository at this point in the history
If `uopFinish` is set when redirecting, it may cause incorrect dequeuing
and enqueuing conflicts, which may cause `allocated` to be unable to be
set correctly.
  • Loading branch information
Anzooooo authored Nov 26, 2024
1 parent 9c13e96 commit d876189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/mem/vector/VMergeBuffer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ abstract class BaseVMergeBuffer(isVStore: Boolean=false)(implicit p: Parameters)

//uopwriteback(deq)
for (i <- 0 until uopSize){
when(allocated(i) && entries(i).allReady()){
when(allocated(i) && entries(i).allReady() && !needCancel(i)){
uopFinish(i) := true.B
}
}
Expand Down

0 comments on commit d876189

Please sign in to comment.