summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2016-09-29 01:06:52 -0400
committerBrad Beckmann <Brad.Beckmann@amd.com>2016-09-29 01:06:52 -0400
commitee7875885783d8b0945d27052bbf1e0a43aca18e (patch)
tree612bf1b32dc8ed3cc9169133621652b7bc88f756
parentf0971354c481c2114ffd44992c92e649a4716c30 (diff)
downloadgem5-ee7875885783d8b0945d27052bbf1e0a43aca18e.tar.xz
ruby: correct size for partial memory writes
Fixed AbstractController::queueMemoryWritePartial to specify the correct size for partial memory writes.
-rw-r--r--src/mem/ruby/slicc_interface/AbstractController.cc3
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];