X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fdev%2Fplatform.cc;h=c6078078682f9b20c13b81ffd5d2b2b93c401f29;hb=ec80224188500183604eaf6cbe19d0ac16616f9c;hp=07288249ce01dd299ec8aedccae716e9b088cbbe;hpb=c9900f159e8d2fd7e32070e2cd0971caf917431d;p=gem5.git diff --git a/src/dev/platform.cc b/src/dev/platform.cc index 07288249c..c60780786 100644 --- a/src/dev/platform.cc +++ b/src/dev/platform.cc @@ -30,15 +30,14 @@ */ #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) { } @@ -62,6 +61,7 @@ Addr Platform::pciToDma(Addr pciAddr) const { panic("No PCI dma support in platform."); + M5_DUMMY_RETURN } void @@ -78,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) -