Skip to content

Commit

Permalink
improve Fetch pipeline throw combinatorial path
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed May 15, 2024
1 parent c330b79 commit 719753c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/scala/vexiiriscv/fetch/FetchPipelinePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ class FetchPipelinePlugin extends FiberPlugin with PipelineService{
val age = getAge(id)
val c = fetch(id)
val doIt = rp.isFlushedAt(age, c(Global.HART_ID), U(0))
doIt.foreach(v => c.throwWhen(v, usingReady = false))
doIt.foreach(v =>
if(flushRange.last != id) {
c.throwWhen(v, usingReady = false)
} else {
c.forgetOneWhen(v)
c.requests.cancels += v
}
)
}
}

Expand Down

0 comments on commit 719753c

Please sign in to comment.