diff options
Diffstat (limited to 'src/dev/net/etherbus.hh')
-rw-r--r-- | src/dev/net/etherbus.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/net/etherbus.hh b/src/dev/net/etherbus.hh index 8c1260fc5..24333b53d 100644 --- a/src/dev/net/etherbus.hh +++ b/src/dev/net/etherbus.hh @@ -35,7 +35,6 @@ #ifndef __DEV_NET_ETHERBUS_HH__ #define __DEV_NET_ETHERBUS_HH__ -#include "dev/net/etherobject.hh" #include "dev/net/etherpkt.hh" #include "params/EtherBus.hh" #include "sim/eventq.hh" @@ -43,7 +42,7 @@ class EtherDump; class EtherInt; -class EtherBus : public SimObject, public EtherObject +class EtherBus : public SimObject { protected: typedef std::list<EtherInt *> devlist_t; @@ -72,7 +71,8 @@ class EtherBus : public SimObject, public EtherObject void reg(EtherInt *dev); bool busy() const { return (bool)packet; } bool send(EtherInt *sender, EthPacketPtr &packet); - EtherInt *getEthPort(const std::string &if_name, int idx) override; + Port &getPort(const std::string &if_name, + PortID idx=InvalidPortID) override; }; #endif // __DEV_NET_ETHERBUS_HH__ |