system.hh 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#ifndef __ARCH_MIPS_BARE_IRON_SYSTEM_HH__
395222Sksewell@umich.edu#define __ARCH_MIPS_BARE_IRON_SYSTEM_HH__
405222Sksewell@umich.edu
415222Sksewell@umich.educlass ThreadContext;
425222Sksewell@umich.edu
435222Sksewell@umich.educlass BreakPCEvent;
445222Sksewell@umich.educlass IdleStartEvent;
455222Sksewell@umich.edu
465222Sksewell@umich.edu#include "arch/mips/system.hh"
475222Sksewell@umich.edu#include "params/BareIronMipsSystem.hh"
485222Sksewell@umich.edu
495222Sksewell@umich.eduusing namespace MipsISA;
505222Sksewell@umich.edu
515222Sksewell@umich.edu/**
525222Sksewell@umich.edu * This class contains linux specific system code (Loading, Events).
535222Sksewell@umich.edu * It points to objects that are the system binaries to load and patches them
545222Sksewell@umich.edu * appropriately to work in simulator.
555222Sksewell@umich.edu */
565222Sksewell@umich.educlass BareIronMipsSystem : public MipsSystem
575222Sksewell@umich.edu{
585222Sksewell@umich.edu  private:
595222Sksewell@umich.edu
605222Sksewell@umich.edu
615222Sksewell@umich.edu  public:
625222Sksewell@umich.edu    static const int CommandLineSize = 256;
635222Sksewell@umich.edu
645222Sksewell@umich.edu  private:
655222Sksewell@umich.edu
665222Sksewell@umich.edu  public:
675222Sksewell@umich.edu    BareIronMipsSystem(Params *p);
685222Sksewell@umich.edu    ~BareIronMipsSystem();
695222Sksewell@umich.edu};
705222Sksewell@umich.edu
715222Sksewell@umich.edu#endif // __ARCH_MIPS_BARE_IRON_SYSTEM_HH__
72