mem-ruby: fixes for masked writes
authorTiago Mück <tiago.muck@arm.com>
Fri, 22 Nov 2019 21:34:47 +0000 (15:34 -0600)
committerTiago Mück <tiago.muck@arm.com>
Thu, 11 Feb 2021 17:05:01 +0000 (17:05 +0000)
commit0183c584928e3740dc017e6d3b92c1e1e2e1a0ac
tree1340b1e83a5f996a821c9f108fb9d2aaca74dae8
parentdde0e3f0dfb9d61aba96eeec0f661e276ec9e7de
mem-ruby: fixes for masked writes

This adds DataBlock::setData(PacketPtr) to update the block with
packet data. The method uses the packet's writeData to copy the
correct bytes if the request is a masked write.

Change-Id: I9e5f70fed29edcf55fef94a4b145aa838dc60eac
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41134
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/common/DataBlock.cc
src/mem/ruby/common/DataBlock.hh
src/mem/ruby/system/DMASequencer.cc
src/mem/ruby/system/Sequencer.cc