SimObjects: Clean up handling of C++ namespaces.
[gem5.git] / src / dev / etherbus.hh
index a3a7f06065fe66df08ee60d797a6b8dcc53c0aec..6408f7f1f18d885fec560a37f0622314a0da889a 100644 (file)
@@ -40,6 +40,7 @@
 #include "dev/etherobject.hh"
 #include "params/EtherBus.hh"
 #include "sim/sim_object.hh"
+#include "params/EtherBus.hh"
 
 class EtherDump;
 class EtherInt;
@@ -58,10 +59,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;