io_device.cc (7823:dac01f14f20f) | io_device.cc (8134:b01a51ff05fa) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 125 unchanged lines hidden (view full) --- 134 DPRINTF(DMA, "Received response %s addr %#x size %#x\n", 135 pkt->cmdString(), pkt->getAddr(), pkt->req->getSize()); 136 state = dynamic_cast<DmaReqState*>(pkt->senderState); 137 pendingCount--; 138 139 assert(pendingCount >= 0); 140 assert(state); 141 | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 125 unchanged lines hidden (view full) --- 134 DPRINTF(DMA, "Received response %s addr %#x size %#x\n", 135 pkt->cmdString(), pkt->getAddr(), pkt->req->getSize()); 136 state = dynamic_cast<DmaReqState*>(pkt->senderState); 137 pendingCount--; 138 139 assert(pendingCount >= 0); 140 assert(state); 141 |
142 // We shouldn't ever get a block in ownership state 143 assert(!(pkt->memInhibitAsserted() && !pkt->sharedAsserted())); 144 |
|
142 state->numBytes += pkt->req->getSize(); 143 assert(state->totBytes >= state->numBytes); 144 if (state->totBytes == state->numBytes) { 145 if (state->completionEvent) { 146 if (state->delay) 147 schedule(state->completionEvent, curTick() + state->delay); 148 else 149 state->completionEvent->process(); --- 198 unchanged lines hidden --- | 145 state->numBytes += pkt->req->getSize(); 146 assert(state->totBytes >= state->numBytes); 147 if (state->totBytes == state->numBytes) { 148 if (state->completionEvent) { 149 if (state->delay) 150 schedule(state->completionEvent, curTick() + state->delay); 151 else 152 state->completionEvent->process(); --- 198 unchanged lines hidden --- |