diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-08-16 16:49:02 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-08-16 16:49:02 -0400 |
commit | 773cb77656174b221c1e51b92a8af7d8e268b733 (patch) | |
tree | c6358a24188fde67e0d0a2816f6b9e2b55d8c535 /src/dev/etherbus.cc | |
parent | a9e4daf574e265e419a0a4a6bcbd03edf3a3299f (diff) | |
download | gem5-773cb77656174b221c1e51b92a8af7d8e268b733.tar.xz |
Devices: Make EtherInts connect in the same way memory ports currently do.
--HG--
extra : convert_revision : 765b096785a77df9adc4791c9101b90696bd7be2
Diffstat (limited to 'src/dev/etherbus.cc')
-rw-r--r-- | src/dev/etherbus.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/dev/etherbus.cc b/src/dev/etherbus.cc index 3e59229ad..2316bfed9 100644 --- a/src/dev/etherbus.cc +++ b/src/dev/etherbus.cc @@ -47,10 +47,9 @@ using namespace std; -EtherBus::EtherBus(const string &name, double speed, bool loop, - EtherDump *packet_dump) - : SimObject(name), ticksPerByte(speed), loopback(loop), - event(&mainEventQueue, this), sender(0), dump(packet_dump) +EtherBus::EtherBus(const Params *p) + : EtherObject(p), ticksPerByte(p->speed), loopback(p->loopback), + event(&mainEventQueue, this), sender(0), dump(p->dump) { } @@ -78,9 +77,11 @@ EtherBus::txDone() packet = 0; } -void -EtherBus::reg(EtherInt *dev) -{ devlist.push_back(dev); } +EtherInt* +EtherBus::getEthPort(const std::string &if_name, int idx) +{ + panic("Etherbus doesn't work\n"); +} bool EtherBus::send(EtherInt *sndr, EthPacketPtr &pkt) @@ -106,5 +107,5 @@ EtherBus::send(EtherInt *sndr, EthPacketPtr &pkt) EtherBus * EtherBusParams::create() { - return new EtherBus(name, speed, loopback, dump); + return new EtherBus(this); } |