mem: Fixes a bug in simple_dram write merging

Fixes updating the value of size in the write merge function.

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
Amin Farmahini
2014-01-28 18:00:49 -06:00
parent 7792dedfdd
commit 575a73f4a1

View File

@@ -506,8 +506,8 @@ SimpleDRAM::addToWriteQueue(PacketPtr pkt, unsigned int pktCount)
merged = true;
// the existing queue item needs to be adjusted with
// respect to both address and size
(*w)->addr = addr;
(*w)->size = (*w)->addr + (*w)->size - addr;
(*w)->addr = addr;
}
} else {
// the new one starts after the current one, figure