Skip to content

Commit

Permalink
Fixed a false value in history when flush happened
Browse files Browse the repository at this point in the history
  • Loading branch information
pentin-as authored and jerryz123 committed Feb 12, 2019
1 parent ec824b9 commit ee03da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/ifu/fetchtargetqueue.scala
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class FetchTargetQueue(num_entries: Int)(implicit p: Parameters) extends BoomMod

when (io.restore_history.valid)
{
val ridx = Mux(io.flush.valid, io.com_ftq_idx, io.brinfo.ftq_idx)
val ridx = Mux(io.flush.valid, io.flush.bits.ftq_idx, io.brinfo.ftq_idx)
io.restore_history.bits.history := ram(ridx).history
}

Expand Down

0 comments on commit ee03da4

Please sign in to comment.