ruby: correct size for partial memory writes
authorBrad Beckmann <Brad.Beckmann@amd.com>
Thu, 29 Sep 2016 05:06:52 +0000 (01:06 -0400)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Thu, 29 Sep 2016 05:06:52 +0000 (01:06 -0400)
Fixed AbstractController::queueMemoryWritePartial to specify the
correct size for partial memory writes.

src/mem/ruby/slicc_interface/AbstractController.cc

index b4576f87e649d5a3c977019f21fe96ebd54d641e..f737707bd7749846253fe274a28168042cf53856 100644 (file)
@@ -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];