platform.cc revision 2542
12632Sstever@eecs.umich.edu/*
22632Sstever@eecs.umich.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan
32632Sstever@eecs.umich.edu * All rights reserved.
42632Sstever@eecs.umich.edu *
52632Sstever@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
62632Sstever@eecs.umich.edu * modification, are permitted provided that the following conditions are
72632Sstever@eecs.umich.edu * met: redistributions of source code must retain the above copyright
82632Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
92632Sstever@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
102632Sstever@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
112632Sstever@eecs.umich.edu * documentation and/or other materials provided with the distribution;
122632Sstever@eecs.umich.edu * neither the name of the copyright holders nor the names of its
132632Sstever@eecs.umich.edu * contributors may be used to endorse or promote products derived from
142632Sstever@eecs.umich.edu * this software without specific prior written permission.
152632Sstever@eecs.umich.edu *
162632Sstever@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172632Sstever@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182632Sstever@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192632Sstever@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202632Sstever@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212632Sstever@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222632Sstever@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232632Sstever@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242632Sstever@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252632Sstever@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262632Sstever@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272632Sstever@eecs.umich.edu */
282632Sstever@eecs.umich.edu
292632Sstever@eecs.umich.edu#include "dev/platform.hh"
302632Sstever@eecs.umich.edu#include "sim/builder.hh"
312469SN/A#include "sim/sim_exit.hh"
322469SN/A
332482SN/Ausing namespace std;
342469SN/Ausing namespace TheISA;
352469SN/A
362469SN/APlatform::Platform(const string &name, IntrControl *intctrl)
372469SN/A    : SimObject(name), intrctrl(intctrl)
382469SN/A{
392469SN/A}
402469SN/A
412469SN/APlatform::~Platform()
422469SN/A{
432469SN/A}
442469SN/A
452469SN/Avoid
462469SN/APlatform::postPciInt(int line)
472469SN/A{
482469SN/A   panic("No PCI interrupt support in platform.");
492469SN/A}
502469SN/A
512469SN/Avoid
522469SN/APlatform::clearPciInt(int line)
533599Sgblack@eecs.umich.edu{
543599Sgblack@eecs.umich.edu   panic("No PCI interrupt support in platform.");
553599Sgblack@eecs.umich.edu}
563599Sgblack@eecs.umich.edu
573599Sgblack@eecs.umich.eduAddr
583599Sgblack@eecs.umich.eduPlatform::pciToDma(Addr pciAddr) const
593599Sgblack@eecs.umich.edu{
603599Sgblack@eecs.umich.edu   panic("No PCI dma support in platform.");
613599Sgblack@eecs.umich.edu}
623599Sgblack@eecs.umich.edu
633599Sgblack@eecs.umich.eduDEFINE_SIM_OBJECT_CLASS_NAME("Platform", Platform)
643599Sgblack@eecs.umich.edu
653599Sgblack@eecs.umich.edu