summaryrefslogtreecommitdiff
path: root/dev/etherlink.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-11-13 16:33:16 -0500
committerNathan Binkert <binkertn@umich.edu>2004-11-13 16:33:16 -0500
commitacb98fb0f64a3b6a4f2f3151b0d4fb14fdfcf7cf (patch)
tree4daefdaf22007eb42f30043334447de27e8aa7cb /dev/etherlink.hh
parentbd3e3c02300312ae8d00ae9abf3fa009a2cddbc7 (diff)
downloadgem5-acb98fb0f64a3b6a4f2f3151b0d4fb14fdfcf7cf.tar.xz
we shouldn't ever pass around references to PacketPtrs,
const references are ok, or pass by value. --HG-- extra : convert_revision : 7280a1c7d22b9294fddbe50f02f6f4c6ca9b2e5b
Diffstat (limited to 'dev/etherlink.hh')
-rw-r--r--dev/etherlink.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/etherlink.hh b/dev/etherlink.hh
index 204348c6d..e998a006f 100644
--- a/dev/etherlink.hh
+++ b/dev/etherlink.hh
@@ -75,7 +75,7 @@ class EtherLink : public SimObject
DoneEvent doneEvent;
friend class LinkDelayEvent;
- void txComplete(PacketPtr &packet);
+ void txComplete(PacketPtr packet);
public:
Link(const std::string &name, double rate, Tick delay,
@@ -85,7 +85,7 @@ class EtherLink : public SimObject
virtual const std::string name() const { return objName; }
bool busy() const { return (bool)packet; }
- bool transmit(PacketPtr &packet);
+ bool transmit(PacketPtr packet);
void setTxInt(Interface *i) { assert(!txint); txint = i; }
void setRxInt(Interface *i) { assert(!rxint); rxint = i; }
@@ -104,7 +104,7 @@ class EtherLink : public SimObject
public:
Interface(const std::string &name, Link *txlink, Link *rxlink);
- bool recvPacket(PacketPtr &packet) { return txlink->transmit(packet); }
+ bool recvPacket(PacketPtr packet) { return txlink->transmit(packet); }
void sendDone() { peer->sendDone(); }
};