dyn_inst.hh revision 2935
12847Sksewell@umich.edu/* 22848Sksewell@umich.edu * Copyright (c) 2006 The Regents of The University of Michigan 32847Sksewell@umich.edu * All rights reserved. 42847Sksewell@umich.edu * 52847Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without 62847Sksewell@umich.edu * modification, are permitted provided that the following conditions are 72847Sksewell@umich.edu * met: redistributions of source code must retain the above copyright 82847Sksewell@umich.edu * notice, this list of conditions and the following disclaimer; 92847Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright 102847Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the 112847Sksewell@umich.edu * documentation and/or other materials provided with the distribution; 122847Sksewell@umich.edu * neither the name of the copyright holders nor the names of its 132847Sksewell@umich.edu * contributors may be used to endorse or promote products derived from 142847Sksewell@umich.edu * this software without specific prior written permission. 152847Sksewell@umich.edu * 162847Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172847Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182847Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192847Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202847Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212847Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222847Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232847Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242847Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252847Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262847Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272847Sksewell@umich.edu * 282848Sksewell@umich.edu * Authors: Korey Sewell 292847Sksewell@umich.edu */ 302847Sksewell@umich.edu 312847Sksewell@umich.edu#ifndef __CPU_O3_DYN_INST_HH__ 322847Sksewell@umich.edu#define __CPU_O3_DYN_INST_HH__ 332847Sksewell@umich.edu 342850Sksewell@umich.edu#include "arch/isa_specific.hh" 352847Sksewell@umich.edu 362848Sksewell@umich.edu#if THE_ISA == ALPHA_ISA 372935Sksewell@umich.edu template <class Impl> class AlphaDynInst; 382935Sksewell@umich.edu struct AlphaSimpleImpl; 392935Sksewell@umich.edu typedef AlphaDynInst<AlphaSimpleImpl> O3DynInst; 402935Sksewell@umich.edu#elif THE_ISA == MIPS_ISA 412935Sksewell@umich.edu template <class Impl> class MipsDynInst; 422935Sksewell@umich.edu struct MipsSimpleImpl; 432935Sksewell@umich.edu typedef MipsDynInst<MipsSimpleImpl> O3DynInst; 442935Sksewell@umich.edu#else 452935Sksewell@umich.edu #error "O3DynInst not defined for this ISA" 462848Sksewell@umich.edu#endif 472847Sksewell@umich.edu 482847Sksewell@umich.edu#endif // __CPU_O3_DYN_INST_HH__ 49