diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 15:45:22 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-02 15:45:22 -0800 |
commit | 956aff1291990639f8a59a95c6b22e0c17bb8cd8 (patch) | |
tree | ab01786ee2cada4cd0c7156de68a2ac85675ac0e /dev/etherdump.hh | |
parent | 7b07b0877f05cffa93b782a76a15791c1126216a (diff) | |
download | gem5-956aff1291990639f8a59a95c6b22e0c17bb8cd8.tar.xz |
More conversions of ref-counted parameters to references:
Statistics::NodePtr, StaticInstPtr, ethernet PacketPtr.
base/statistics.hh:
Change NodePtr parameters to Nodeptr &.
cpu/exetrace.hh:
Change StaticInstPtr parameters to StaticInstPtr &.
dev/etherbus.cc:
dev/etherbus.hh:
dev/etherdump.cc:
dev/etherdump.hh:
dev/etherint.hh:
dev/etherlink.cc:
dev/etherlink.hh:
dev/ethertap.cc:
dev/ethertap.hh:
change PacketPtr parameters to PacketPtr &.
--HG--
extra : convert_revision : a778efdca33b0ec5beb76cf47db0e9e4728897ee
Diffstat (limited to 'dev/etherdump.hh')
-rw-r--r-- | dev/etherdump.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/etherdump.hh b/dev/etherdump.hh index b3aefeb74..e22b66166 100644 --- a/dev/etherdump.hh +++ b/dev/etherdump.hh @@ -44,7 +44,7 @@ class EtherDump : public SimObject { private: std::ofstream stream; - void dumpPacket(PacketPtr packet); + void dumpPacket(PacketPtr &packet); void init(); Tick curtime; @@ -54,7 +54,7 @@ class EtherDump : public SimObject public: EtherDump(const std::string &name, const std::string &file); - inline void dump(PacketPtr pkt) { if (stream.is_open()) dumpPacket(pkt); } + inline void dump(PacketPtr &pkt) { if (stream.is_open()) dumpPacket(pkt); } }; #endif // __ETHERDUMP_H__ |