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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user