diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2016-09-29 01:06:52 -0400 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2016-09-29 01:06:52 -0400 |
commit | ee7875885783d8b0945d27052bbf1e0a43aca18e (patch) | |
tree | 612bf1b32dc8ed3cc9169133621652b7bc88f756 /src/mem | |
parent | f0971354c481c2114ffd44992c92e649a4716c30 (diff) | |
download | gem5-ee7875885783d8b0945d27052bbf1e0a43aca18e.tar.xz |
ruby: correct size for partial memory writes
Fixed AbstractController::queueMemoryWritePartial to specify the
correct size for partial memory writes.
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/ruby/slicc_interface/AbstractController.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mem/ruby/slicc_interface/AbstractController.cc b/src/mem/ruby/slicc_interface/AbstractController.cc index b4576f87e..f737707bd 100644 --- a/src/mem/ruby/slicc_interface/AbstractController.cc +++ b/src/mem/ruby/slicc_interface/AbstractController.cc @@ -278,8 +278,7 @@ AbstractController::queueMemoryWritePartial(const MachineID &id, Addr addr, Cycles latency, const DataBlock &block, int size) { - RequestPtr req = new Request(addr, RubySystem::getBlockSizeBytes(), 0, - m_masterId); + RequestPtr req = new Request(addr, size, 0, m_masterId); PacketPtr pkt = Packet::createWrite(req); uint8_t *newData = new uint8_t[size]; |