Thread: Use inherited baseCpu rather than cpu in SimpleThread
[gem5.git] / src / dev / etherbus.hh
index a3a7f06065fe66df08ee60d797a6b8dcc53c0aec..43978b9c23e490cbef9eea1bb889f568e27fd0a5 100644 (file)
 #ifndef __ETHERBUS_H__
 #define __ETHERBUS_H__
 
-#include "sim/eventq.hh"
-#include "dev/etherpkt.hh"
 #include "dev/etherobject.hh"
+#include "dev/etherpkt.hh"
 #include "params/EtherBus.hh"
+#include "sim/eventq.hh"
 #include "sim/sim_object.hh"
 
 class EtherDump;
@@ -58,10 +58,10 @@ class EtherBus : public EtherObject
         EtherBus *bus;
 
       public:
-        DoneEvent(EventQueue *q, EtherBus *b)
-            : Event(q), bus(b) {}
+        DoneEvent(EtherBus *b) : bus(b) {}
         virtual void process() { bus->txDone(); }
-        virtual const char *description() { return "ethernet bus completion"; }
+        virtual const char *description() const
+            { return "ethernet bus completion"; }
     };
 
     DoneEvent event;