diff options
-rw-r--r-- | src/mem/dram_ctrl.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mem/dram_ctrl.cc b/src/mem/dram_ctrl.cc index dd03cf113..e89a47a72 100644 --- a/src/mem/dram_ctrl.cc +++ b/src/mem/dram_ctrl.cc @@ -644,21 +644,7 @@ DRAMCtrl::recvTimingReq(PacketPtr pkt) qosSchedule( { &readQueue, &writeQueue }, burstSize, pkt); // check local buffers and do not accept if full - if (pkt->isRead()) { - assert(size != 0); - if (readQueueFull(dram_pkt_count)) { - DPRINTF(DRAM, "Read queue full, not accepting\n"); - // remember that we have to retry this port - retryRdReq = true; - numRdRetry++; - return false; - } else { - addToReadQueue(pkt, dram_pkt_count); - readReqs++; - bytesReadSys += size; - } - } else { - assert(pkt->isWrite()); + if (pkt->isWrite()) { assert(size != 0); if (writeQueueFull(dram_pkt_count)) { DPRINTF(DRAM, "Write queue full, not accepting\n"); @@ -671,6 +657,20 @@ DRAMCtrl::recvTimingReq(PacketPtr pkt) writeReqs++; bytesWrittenSys += size; } + } else { + assert(pkt->isRead()); + assert(size != 0); + if (readQueueFull(dram_pkt_count)) { + DPRINTF(DRAM, "Read queue full, not accepting\n"); + // remember that we have to retry this port + retryRdReq = true; + numRdRetry++; + return false; + } else { + addToReadQueue(pkt, dram_pkt_count); + readReqs++; + bytesReadSys += size; + } } return true; |