ruby: correct size for partial memory writes

Fixed AbstractController::queueMemoryWritePartial to specify the
correct size for partial memory writes.
This commit is contained in:
Brad Beckmann 2016-09-29 01:06:52 -04:00
parent f0971354c4
commit ee78758857

View 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];