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:
parent
10e8978ec0
commit
7645c8e611
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue