From: Brad Beckmann Date: Thu, 29 Sep 2016 05:06:52 +0000 (-0400) Subject: ruby: correct size for partial memory writes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee7875885783d8b0945d27052bbf1e0a43aca18e;p=gem5.git ruby: correct size for partial memory writes Fixed AbstractController::queueMemoryWritePartial to specify the correct size for partial memory writes. --- 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];