X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fdev%2Fplatform.cc;h=8c7706b4825dd06a6704423adfad08486fc584cf;hb=9d8fec0d90c2121a092c04da74e3306069ab5270;hp=a91a5abf969826f83b141fe6f7c9cd62a0635c2a;hpb=279f179babc9e5663156777c533c06edc91bce9a;p=gem5.git diff --git a/src/dev/platform.cc b/src/dev/platform.cc index a91a5abf9..8c7706b48 100644 --- a/src/dev/platform.cc +++ b/src/dev/platform.cc @@ -35,7 +35,6 @@ #include "sim/sim_exit.hh" using namespace std; -using namespace TheISA; Platform::Platform(const Params *p) : SimObject(p), intrctrl(p->intrctrl) @@ -57,25 +56,3 @@ Platform::clearPciInt(int line) { panic("No PCI interrupt support in platform."); } - -Addr -Platform::pciToDma(Addr pciAddr) const -{ - panic("No PCI dma support in platform."); - M5_DUMMY_RETURN -} - -void -Platform::registerPciDevice(uint8_t bus, uint8_t dev, uint8_t func, uint8_t intr) -{ - uint32_t bdf = bus << 16 | dev << 8 | func << 0; - if (pciDevices.find(bdf) != pciDevices.end()) - fatal("Two PCI devices have same bus:device:function\n"); - - if (intLines.test(intr)) - fatal("Two PCI devices have same interrupt line: %d\n", intr); - - pciDevices.insert(bdf); - - intLines.set(intr); -}