misc: Fix a few accidental transitive includes.
[gem5.git] / src / dev / platform.cc
index 07288249ce01dd299ec8aedccae716e9b088cbbe..718f76711b0582342dd9275b2ae0aaab2180ea0b 100644 (file)
  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * Authors: Ali Saidi
- *          Nathan Binkert
  */
 
-#include "base/misc.hh"
 #include "dev/platform.hh"
-#include "sim/builder.hh"
+
+#include "base/logging.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)
 {
 }
 
@@ -57,28 +53,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.");
-}
-
-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);
-}
-
-
-DEFINE_SIM_OBJECT_CLASS_NAME("Platform", Platform)
-