arm: Remove the 'magic MSI register' in the GIC (PL390)
[gem5.git] / src / dev / platform.cc
index 8546b7805f58b89824ca2ab950cd41fc2e61a2a6..c6078078682f9b20c13b81ffd5d2b2b93c401f29 100644 (file)
  *          Nathan Binkert
  */
 
+#include "base/misc.hh"
+#include "config/the_isa.hh"
 #include "dev/platform.hh"
-#include "sim/builder.hh"
 #include "sim/sim_exit.hh"
 
 using namespace std;
-using namespace TheISA;
 
-Platform::Platform(const string &name, IntrControl *intctrl)
-    : SimObject(name), intrctrl(intctrl)
+Platform::Platform(const Params *p)
+    : SimObject(p), intrctrl(p->intrctrl)
 {
 }
 
@@ -61,6 +61,7 @@ Addr
 Platform::pciToDma(Addr pciAddr) const
 {
    panic("No PCI dma support in platform.");
+   M5_DUMMY_RETURN
 }
 
 void
@@ -77,7 +78,3 @@ Platform::registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, uint8_t intr
 
     intLines.set(intr);
 }
-
-
-DEFINE_SIM_OBJECT_CLASS_NAME("Platform", Platform)
-