Skip to content

Commit

Permalink
[iss] Prevent FP loads from speculative wakeups.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccelio committed May 17, 2018
1 parent b9b7d1f commit 3b97569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/exu/core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ class BoomCore(implicit p: Parameters, edge: freechips.rocketchip.tilelink.TLEdg
val mem_iq = issue_units.find(_.iqType == IQT_MEM.litValue).get

require (mem_iq.issue_width == 1)
val iss_loadIssued = mem_iq.io.iss_valids(0) && mem_iq.io.iss_uops(0).is_load
val iss_loadIssued = mem_iq.io.iss_valids(0) && mem_iq.io.iss_uops(0).is_load && !mem_iq.io.iss_uops(0).fp_val
val sxt_ldMiss =
((lsu.io.nack.valid && lsu.io.nack.isload) || dc_shim.io.core.load_miss) &&
Pipe(true.B, iss_loadIssued, 4).bits
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/lsu/lsu.scala
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class LoadStoreUnitIO(pl_width: Int)(implicit p: Parameters) extends BoomBundle(

// Memory Stage
val memreq_kill = Bool(OUTPUT) // kill request sent out last cycle
val mem_ldSpecWakeup = Valid(UInt(width=PREG_SZ.W))
val mem_ldSpecWakeup = Valid(UInt(width=PREG_SZ.W)) // do NOT send out FP loads.

// Forward Store Data to Register File
// TODO turn into forward bundle
Expand Down Expand Up @@ -648,7 +648,7 @@ class LoadStoreUnit(pl_width: Int)(implicit p: Parameters, edge: freechips.rocke
mem_ld_killed := Bool(true) && mem_fired_ld
}

io.mem_ldSpecWakeup.valid := RegNext(will_fire_load_incoming, init=false.B)
io.mem_ldSpecWakeup.valid := RegNext(will_fire_load_incoming && !io.exe_resp.bits.uop.fp_val, init=false.B)
io.mem_ldSpecWakeup.bits := mem_ld_uop.pdst

// tell the ROB to clear the busy bit on the incoming store
Expand Down

0 comments on commit 3b97569

Please sign in to comment.