io_device.cc (10405:7a618c07e663) | io_device.cc (10603:6099331da328) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 43 unchanged lines hidden (view full) --- 52} 53 54Tick 55PioPort::recvAtomic(PacketPtr pkt) 56{ 57 // @todo: We need to pay for this and not just zero it out 58 pkt->firstWordDelay = pkt->lastWordDelay = 0; 59 | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 43 unchanged lines hidden (view full) --- 52} 53 54Tick 55PioPort::recvAtomic(PacketPtr pkt) 56{ 57 // @todo: We need to pay for this and not just zero it out 58 pkt->firstWordDelay = pkt->lastWordDelay = 0; 59 |
60 return pkt->isRead() ? device->read(pkt) : device->write(pkt); | 60 const Tick delay(pkt->isRead() ? device->read(pkt) : device->write(pkt)); 61 assert(pkt->isResponse() || pkt->isError()); 62 return delay; |
61} 62 63AddrRangeList 64PioPort::getAddrRanges() const 65{ 66 return device->getAddrRanges(); 67} 68 --- 51 unchanged lines hidden --- | 63} 64 65AddrRangeList 66PioPort::getAddrRanges() const 67{ 68 return device->getAddrRanges(); 69} 70 --- 51 unchanged lines hidden --- |