system.cc revision 5222
15222Sksewell@umich.edu/* 25222Sksewell@umich.edu * Copyright .AN) 2007 MIPS Technologies, Inc. All Rights Reserved 35222Sksewell@umich.edu * 45222Sksewell@umich.edu * This software is part of the M5 simulator. 55222Sksewell@umich.edu * 65222Sksewell@umich.edu * THIS IS A LEGAL AGREEMENT. BY DOWNLOADING, USING, COPYING, CREATING 75222Sksewell@umich.edu * DERIVATIVE WORKS, AND/OR DISTRIBUTING THIS SOFTWARE YOU ARE AGREEING 85222Sksewell@umich.edu * TO THESE TERMS AND CONDITIONS. 95222Sksewell@umich.edu * 105222Sksewell@umich.edu * Permission is granted to use, copy, create derivative works and 115222Sksewell@umich.edu * distribute this software and such derivative works for any purpose, 125222Sksewell@umich.edu * so long as (1) the copyright notice above, this grant of permission, 135222Sksewell@umich.edu * and the disclaimer below appear in all copies and derivative works 145222Sksewell@umich.edu * made, (2) the copyright notice above is augmented as appropriate to 155222Sksewell@umich.edu * reflect the addition of any new copyrightable work in a derivative 165222Sksewell@umich.edu * work (e.g., Copyright .AN) <Publication Year> Copyright Owner), and (3) 175222Sksewell@umich.edu * the name of MIPS Technologies, Inc. ($B!H(BMIPS$B!I(B) is not used in any 185222Sksewell@umich.edu * advertising or publicity pertaining to the use or distribution of 195222Sksewell@umich.edu * this software without specific, written prior authorization. 205222Sksewell@umich.edu * 215222Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED $B!H(BAS IS.$B!I(B MIPS MAKES NO WARRANTIES AND 225222Sksewell@umich.edu * DISCLAIMS ALL WARRANTIES, WHETHER EXPRESS, STATUTORY, IMPLIED OR 235222Sksewell@umich.edu * OTHERWISE, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 245222Sksewell@umich.edu * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND 255222Sksewell@umich.edu * NON-INFRINGEMENT OF THIRD PARTY RIGHTS, REGARDING THIS SOFTWARE. 265222Sksewell@umich.edu * IN NO EVENT SHALL MIPS BE LIABLE FOR ANY DAMAGES, INCLUDING DIRECT, 275222Sksewell@umich.edu * INDIRECT, INCIDENTAL, CONSEQUENTIAL, SPECIAL, OR PUNITIVE DAMAGES OF 285222Sksewell@umich.edu * ANY KIND OR NATURE, ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT, 295222Sksewell@umich.edu * THIS SOFTWARE AND/OR THE USE OF THIS SOFTWARE, WHETHER SUCH LIABILITY 305222Sksewell@umich.edu * IS ASSERTED ON THE BASIS OF CONTRACT, TORT (INCLUDING NEGLIGENCE OR 315222Sksewell@umich.edu * STRICT LIABILITY), OR OTHERWISE, EVEN IF MIPS HAS BEEN WARNED OF THE 325222Sksewell@umich.edu * POSSIBILITY OF ANY SUCH LOSS OR DAMAGE IN ADVANCE. 335222Sksewell@umich.edu * 345222Sksewell@umich.edu * Authors: Jaidev Patwardhan 355222Sksewell@umich.edu * 365222Sksewell@umich.edu */ 375222Sksewell@umich.edu 385222Sksewell@umich.edu#include "arch/vtophys.hh" 395222Sksewell@umich.edu#include "arch/mips/bare_iron/system.hh" 405222Sksewell@umich.edu#include "arch/mips/system.hh" 415222Sksewell@umich.edu#include "cpu/thread_context.hh" 425222Sksewell@umich.edu#include "cpu/base.hh" 435222Sksewell@umich.edu#include "dev/platform.hh" 445222Sksewell@umich.edu#include "mem/physical.hh" 455222Sksewell@umich.edu#include "mem/port.hh" 465222Sksewell@umich.edu#include "params/BareIronMipsSystem.hh" 475222Sksewell@umich.edu#include "sim/byteswap.hh" 485222Sksewell@umich.edu 495222Sksewell@umich.eduusing namespace std; 505222Sksewell@umich.eduusing namespace MipsISA; 515222Sksewell@umich.edu 525222Sksewell@umich.edu 535222Sksewell@umich.eduBareIronMipsSystem::BareIronMipsSystem(Params *p) 545222Sksewell@umich.edu : MipsSystem(p) 555222Sksewell@umich.edu{ } 565222Sksewell@umich.edu 575222Sksewell@umich.eduBareIronMipsSystem::~BareIronMipsSystem() 585222Sksewell@umich.edu{ } 595222Sksewell@umich.edu 605222Sksewell@umich.eduBareIronMipsSystem * 615222Sksewell@umich.eduBareIronMipsSystemParams::create() 625222Sksewell@umich.edu{ 635222Sksewell@umich.edu return new BareIronMipsSystem(this); 645222Sksewell@umich.edu} 655222Sksewell@umich.edu 66