Skip to content

Commit

Permalink
Merge pull request #490 from riscv-boom/icache-flush-fix
Browse files Browse the repository at this point in the history
[ifu] Fix spurious ICache flush by invalid instructions
  • Loading branch information
jerryz123 committed Aug 30, 2020
2 parents 3045048 + cf4d748 commit c10da82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/exu/core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class BoomCore(usingTrace: Boolean)(implicit p: Parameters) extends BoomModule

io.ifu.flush_icache := (0 until coreWidth).map { i =>
(rob.io.commit.arch_valids(i) && rob.io.commit.uops(i).is_fencei) ||
(dec_uops(i).is_jalr && csr.io.status.debug)
(RegNext(dec_valids(i) && dec_uops(i).is_jalr && csr.io.status.debug))
}.reduce(_||_)

// TODO FIX THIS HACK
Expand Down

0 comments on commit c10da82

Please sign in to comment.