mem: Fix for 100% write threshold in DRAM controller

This patch fixes the controller when a write threshold of 100% is
used.  Earlier for 100% write threshold no data is written to memory
as writes never get triggered since this corner case is not
considered.
This commit is contained in:
Neha Agarwal 2013-11-01 11:56:21 -04:00
parent 10e8978ec0
commit 7645c8e611

View file

@ -563,7 +563,7 @@ SimpleDRAM::addToWriteQueue(PacketPtr pkt, unsigned int pktCount)
accessAndRespond(pkt, frontendLatency);
// If your write buffer is starting to fill up, drain it!
if (writeQueue.size() > writeThreshold && !stopReads){
if (writeQueue.size() >= writeThreshold && !stopReads){
triggerWrites();
}
}