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,
|
Cycles latency,
|
||||||
const DataBlock &block, int size)
|
const DataBlock &block, int size)
|
||||||
{
|
{
|
||||||
RequestPtr req = new Request(addr, RubySystem::getBlockSizeBytes(), 0,
|
RequestPtr req = new Request(addr, size, 0, m_masterId);
|
||||||
m_masterId);
|
|
||||||
|
|
||||||
PacketPtr pkt = Packet::createWrite(req);
|
PacketPtr pkt = Packet::createWrite(req);
|
||||||
uint8_t *newData = new uint8_t[size];
|
uint8_t *newData = new uint8_t[size];
|
||||||
|
|
Loading…
Reference in a new issue