bridge.cc (3349:fec4a86fa212) bridge.cc (3662:9dacf0926b69)
1
2/*
3 * Copyright (c) 2006 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

86}
87
88
89/** Function called by the port when the bus is receiving a Timing
90 * transaction.*/
91bool
92Bridge::BridgePort::recvTiming(PacketPtr pkt)
93{
1
2/*
3 * Copyright (c) 2006 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

86}
87
88
89/** Function called by the port when the bus is receiving a Timing
90 * transaction.*/
91bool
92Bridge::BridgePort::recvTiming(PacketPtr pkt)
93{
94 DPRINTF(BusBridge, "recvTiming: src %d dest %d addr 0x%x\n",
95 pkt->getSrc(), pkt->getDest(), pkt->getAddr());
94 if (pkt->flags & SNOOP_COMMIT) {
95 DPRINTF(BusBridge, "recvTiming: src %d dest %d addr 0x%x\n",
96 pkt->getSrc(), pkt->getDest(), pkt->getAddr());
96
97
97 return otherPort->queueForSendTiming(pkt);
98 return otherPort->queueForSendTiming(pkt);
99 }
100 else {
101 // Else it's just a snoop, properly return if we are blocking
102 return !queueFull();
103 }
98}
99
100
101bool
102Bridge::BridgePort::queueForSendTiming(PacketPtr pkt)
103{
104 if (queueFull())
105 return false;

--- 158 unchanged lines hidden ---
104}
105
106
107bool
108Bridge::BridgePort::queueForSendTiming(PacketPtr pkt)
109{
110 if (queueFull())
111 return false;

--- 158 unchanged lines hidden ---