647c647
< if (pkt->isRead()) {
---
> if (pkt->isWrite()) {
649,662d648
< 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());
< assert(size != 0);
673a660,673
> } 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;
> }