bridge.cc (8922:17f037ad8918) bridge.cc (8948:e95ee70f876c)
1/*
2 * Copyright (c) 2011-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

--- 398 unchanged lines hidden (view full) ---

407 Tick nextReady = responseQueue.front()->ready;
408 if (nextReady <= curTick())
409 trySend();
410 else
411 bridge->schedule(sendEvent, nextReady);
412}
413
414Tick
1/*
2 * Copyright (c) 2011-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

--- 398 unchanged lines hidden (view full) ---

407 Tick nextReady = responseQueue.front()->ready;
408 if (nextReady <= curTick())
409 trySend();
410 else
411 bridge->schedule(sendEvent, nextReady);
412}
413
414Tick
415Bridge::BridgeMasterPort::recvAtomic(PacketPtr pkt)
416{
417 // master port should never receive any atomic access (panic only
418 // works once the other side, i.e. the busses, respects this)
419 //
420 //panic("Master port on %s got a recvAtomic\n", bridge->name());
421 return 0;
422}
423
424Tick
425Bridge::BridgeSlavePort::recvAtomic(PacketPtr pkt)
426{
427 return delay + masterPort.sendAtomic(pkt);
428}
429
430void
415Bridge::BridgeSlavePort::recvAtomic(PacketPtr pkt)
416{
417 return delay + masterPort.sendAtomic(pkt);
418}
419
420void
431Bridge::BridgeMasterPort::recvFunctional(PacketPtr pkt)
432{
433 // master port should never receive any functional access (panic
434 // only works once the other side, i.e. the busses, respect this)
435
436 // panic("Master port on %s got a recvFunctional\n", bridge->name());
437}
438
439void
440Bridge::BridgeSlavePort::recvFunctional(PacketPtr pkt)
441{
442 std::list<PacketBuffer*>::iterator i;
443
444 pkt->pushLabel(name());
445
446 // check the response queue
447 for (i = responseQueue.begin(); i != responseQueue.end(); ++i) {

--- 45 unchanged lines hidden ---
421Bridge::BridgeSlavePort::recvFunctional(PacketPtr pkt)
422{
423 std::list<PacketBuffer*>::iterator i;
424
425 pkt->pushLabel(name());
426
427 // check the response queue
428 for (i = responseQueue.begin(); i != responseQueue.end(); ++i) {

--- 45 unchanged lines hidden ---