Skip to content

Commit

Permalink
Merge pull request chipsalliance#2221 from chipsalliance/fix-fence-i-…
Browse files Browse the repository at this point in the history
…rs1-rs2

Ignore rs1/rs2 in FENCE.I
  • Loading branch information
aswaterman authored Dec 12, 2019
2 parents b851d92 + ea6f654 commit 626060a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
when (id_ctrl.mem_cmd.isOneOf(M_SFENCE, M_FLUSH_ALL)) {
ex_reg_mem_size := Cat(id_raddr2 =/= UInt(0), id_raddr1 =/= UInt(0))
}
if (tile.dcache.flushOnFenceI) {
when (id_ctrl.fence_i) {
ex_reg_mem_size := 0
}
}

for (i <- 0 until id_raddr.size) {
val do_bypass = id_bypass_src(i).reduce(_||_)
Expand Down

0 comments on commit 626060a

Please sign in to comment.