system.cc revision 7650
14355SN/A/* 24355SN/A * Copyright (c) 2010 ARM Limited 34355SN/A * All rights reserved 410036SAli.Saidi@ARM.com * 58835SAli.Saidi@ARM.com * The license below extends only to copyright in the software and shall 610036SAli.Saidi@ARM.com * not be construed as granting a license to any other intellectual 77935SN/A * property including but not limited to intellectual property relating 87935SN/A * to a hardware implementation of the functionality of the software 97935SN/A * licensed hereunder. You may use the software subject to the license 104355SN/A * terms below provided that you ensure that this notice is replicated 114355SN/A * unmodified and in its entirety in all distributions of the software, 124355SN/A * modified or unmodified, in source code or in binary form. 1310315Snilay@cs.wisc.edu * 148835SAli.Saidi@ARM.com * Copyright (c) 2002-2006 The Regents of The University of Michigan 159885Sstever@gmail.com * All rights reserved. 169885Sstever@gmail.com * 1711570SCurtis.Dunham@arm.com * Redistribution and use in source and binary forms, with or without 1810036SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are 1911312Santhony.gutierrez@amd.com * met: redistributions of source code must retain the above copyright 208835SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer; 218835SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright 2210315Snilay@cs.wisc.edu * notice, this list of conditions and the following disclaimer in the 238835SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution; 2410242Ssteve.reinhardt@amd.com * neither the name of the copyright holders nor the names of its 259449SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from 269449SAli.Saidi@ARM.com * this software without specific prior written permission. 278464SN/A * 2810736Snilay@cs.wisc.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2911219Snilay@cs.wisc.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 308721SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 3111570SCurtis.Dunham@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3211570SCurtis.Dunham@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3311570SCurtis.Dunham@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3411570SCurtis.Dunham@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 358835SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 368835SAli.Saidi@ARM.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3711440SCurtis.Dunham@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3811440SCurtis.Dunham@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 397935SN/A * 407935SN/A * Authors: Ali Saidi 417935SN/A */ 427935SN/A 437935SN/A#include "arch/arm/system.hh" 447935SN/A#include <iostream> 457935SN/A 468983Snate@binkert.orgusing namespace std; 474355SN/Ausing namespace ArmISA; 489885Sstever@gmail.comusing namespace Linux; 499885Sstever@gmail.com 509885Sstever@gmail.comArmSystem::ArmSystem(Params *p) 5110315Snilay@cs.wisc.edu : System(p) 5210036SAli.Saidi@ARM.com{ 5310315Snilay@cs.wisc.edu debugPrintkEvent = addKernelFuncEvent<DebugPrintkEvent>("dprintk"); 549885Sstever@gmail.com 559885Sstever@gmail.com} 564355SN/A 574355SN/AArmSystem::~ArmSystem() 589481Snilay@cs.wisc.edu{ 594355SN/A delete debugPrintkEvent; 604355SN/A} 618241SN/A 628241SN/A 634355SN/AArmSystem * 644355SN/AArmSystemParams::create() 654355SN/A{ 664355SN/A return new ArmSystem(this); 679481Snilay@cs.wisc.edu} 6811960Sgabeblack@google.com