ruby: correct size for partial memory writes
Fixed AbstractController::queueMemoryWritePartial to specify the correct size for partial memory writes.
This commit is contained in:
parent
f0971354c4
commit
ee78758857
1 changed files with 1 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue