Skip to content

Commit

Permalink
Don't assign SInt(-1) to a UInt
Browse files Browse the repository at this point in the history
  • Loading branch information
palmer-dabbelt committed Mar 23, 2016
1 parent aa22f17 commit c9e1b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uncore/src/main/scala/cache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ class L2AcquireTracker(trackerId: Int)(implicit p: Parameters) extends L2XactTra
io.data.write.bits.way_en := xact_way_en
io.data.write.bits.addr_idx := xact_addr_idx
io.data.write.bits.addr_beat := curr_write_beat
io.data.write.bits.wmask := SInt(-1) // Always writes a full beat
io.data.write.bits.wmask := ~UInt(0, io.data.write.bits.wmask.getWidth)
io.data.write.bits.data := data_buffer(curr_write_beat)

// soon as the data is released, granted, put, or read from the cache
Expand Down

0 comments on commit c9e1b72

Please sign in to comment.