faults.hh revision 2131
19665Sandreas.hansson@arm.com/* 29665Sandreas.hansson@arm.com * Copyright (c) 2003-2005 The Regents of The University of Michigan 39665Sandreas.hansson@arm.com * All rights reserved. 49665Sandreas.hansson@arm.com * 59665Sandreas.hansson@arm.com * Redistribution and use in source and binary forms, with or without 69665Sandreas.hansson@arm.com * modification, are permitted provided that the following conditions are 79665Sandreas.hansson@arm.com * met: redistributions of source code must retain the above copyright 89665Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer; 99665Sandreas.hansson@arm.com * redistributions in binary form must reproduce the above copyright 109665Sandreas.hansson@arm.com * notice, this list of conditions and the following disclaimer in the 119665Sandreas.hansson@arm.com * documentation and/or other materials provided with the distribution; 129665Sandreas.hansson@arm.com * neither the name of the copyright holders nor the names of its 135353Svilas.sridharan@gmail.com * contributors may be used to endorse or promote products derived from 143395Shsul@eecs.umich.edu * this software without specific prior written permission. 153395Shsul@eecs.umich.edu * 163395Shsul@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 173395Shsul@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 183395Shsul@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 193395Shsul@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 203395Shsul@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 213395Shsul@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 223395Shsul@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 233395Shsul@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 243395Shsul@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 253395Shsul@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 263395Shsul@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 273395Shsul@eecs.umich.edu */ 283395Shsul@eecs.umich.edu 293395Shsul@eecs.umich.edu#ifndef __ALPHA_FAULTS_HH__ 303395Shsul@eecs.umich.edu#define __ALPHA_FAULTS_HH__ 313395Shsul@eecs.umich.edu 323395Shsul@eecs.umich.edu#include "sim/faults.hh" 333395Shsul@eecs.umich.edu#include "arch/isa_traits.hh" //For the Addr type 343395Shsul@eecs.umich.edu 353395Shsul@eecs.umich.educlass Garbage; 363395Shsul@eecs.umich.educlass Fault; 373395Shsul@eecs.umich.edu 383395Shsul@eecs.umich.educlass AlphaFault : public Fault 393395Shsul@eecs.umich.edu{ 403395Shsul@eecs.umich.edu public: 4113774Sandreas.sandberg@arm.com AlphaFault(char * newName, int newId, Addr newVect) 4213774Sandreas.sandberg@arm.com : Fault(newName, newId), vect(newVect) 4313774Sandreas.sandberg@arm.com {;} 448920Snilay@cs.wisc.edu 458920Snilay@cs.wisc.edu Addr vect; 468920Snilay@cs.wisc.edu}; 477025SBrad.Beckmann@amd.com 4813774Sandreas.sandberg@arm.comextern class ResetFaultType : public AlphaFault 4913774Sandreas.sandberg@arm.com{ 5013774Sandreas.sandberg@arm.com public: 5113876Sjavier.bueno@metempsy.com ResetFaultType(char * newName, int newId, Addr newVect) 5213774Sandreas.sandberg@arm.com : AlphaFault(newName, newId, newVect) 5313774Sandreas.sandberg@arm.com {;} 5410747SChris.Emmons@arm.com} * const ResetFault; 559520SAndreas.Sandberg@ARM.com 569520SAndreas.Sandberg@ARM.comextern class ArithmeticFaultType : public AlphaFault 579520SAndreas.Sandberg@ARM.com{ 589520SAndreas.Sandberg@ARM.com public: 5913432Spau.cabre@metempsy.com ArithmeticFaultType(char * newName, int newId, Addr newVect) 6013432Spau.cabre@metempsy.com : AlphaFault(newName, newId, newVect) 6113432Spau.cabre@metempsy.com {;} 6213432Spau.cabre@metempsy.com} * const ArithmeticFault; 6313876Sjavier.bueno@metempsy.com 6413876Sjavier.bueno@metempsy.comextern class InterruptFaultType : public AlphaFault 6513876Sjavier.bueno@metempsy.com{ 6613876Sjavier.bueno@metempsy.com public: 679665Sandreas.hansson@arm.com InterruptFaultType(char * newName, int newId, Addr newVect) 689665Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 699665Sandreas.hansson@arm.com {;} 709665Sandreas.hansson@arm.com} * const InterruptFault; 7111238Sandreas.sandberg@arm.com 7211238Sandreas.sandberg@arm.comextern class NDtbMissFaultType : public AlphaFault 7311238Sandreas.sandberg@arm.com{ 7411238Sandreas.sandberg@arm.com public: 7511688Sandreas.hansson@arm.com NDtbMissFaultType(char * newName, int newId, Addr newVect) 7611688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 7711688Sandreas.hansson@arm.com {;} 7811688Sandreas.hansson@arm.com} * const NDtbMissFault; 798920Snilay@cs.wisc.edu 809827Sakash.bagdia@arm.comextern class PDtbMissFaultType : public AlphaFault 819827Sakash.bagdia@arm.com{ 829827Sakash.bagdia@arm.com public: 839827Sakash.bagdia@arm.com PDtbMissFaultType(char * newName, int newId, Addr newVect) 849790Sakash.bagdia@arm.com : AlphaFault(newName, newId, newVect) 859790Sakash.bagdia@arm.com {;} 869790Sakash.bagdia@arm.com} * const PDtbMissFault; 879790Sakash.bagdia@arm.com 8811688Sandreas.hansson@arm.comextern class DtbPageFaultType : public AlphaFault 8911688Sandreas.hansson@arm.com{ 9011688Sandreas.hansson@arm.com public: 9111688Sandreas.hansson@arm.com DtbPageFaultType(char * newName, int newId, Addr newVect) 9211688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 9311837Swendy.elsasser@arm.com {;} 9411688Sandreas.hansson@arm.com} * const DtbPageFault; 9511688Sandreas.hansson@arm.com 9611688Sandreas.hansson@arm.comextern class DtbAcvFaultType : public AlphaFault 9711688Sandreas.hansson@arm.com{ 9811688Sandreas.hansson@arm.com public: 9911688Sandreas.hansson@arm.com DtbAcvFaultType(char * newName, int newId, Addr newVect) 10011688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 10111688Sandreas.hansson@arm.com {;} 10211688Sandreas.hansson@arm.com} * const DtbAcvFault; 10311688Sandreas.hansson@arm.com 10411688Sandreas.hansson@arm.comextern class ItbMissFaultType : public AlphaFault 10511688Sandreas.hansson@arm.com{ 10611688Sandreas.hansson@arm.com public: 10711688Sandreas.hansson@arm.com ItbMissFaultType(char * newName, int newId, Addr newVect) 10811688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 10911688Sandreas.hansson@arm.com {;} 11011688Sandreas.hansson@arm.com} * const ItbMissFault; 11111688Sandreas.hansson@arm.com 11211688Sandreas.hansson@arm.comextern class ItbPageFaultType : public AlphaFault 11311688Sandreas.hansson@arm.com{ 11411688Sandreas.hansson@arm.com public: 11511688Sandreas.hansson@arm.com ItbPageFaultType(char * newName, int newId, Addr newVect) 11611688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 11711688Sandreas.hansson@arm.com {;} 11811688Sandreas.hansson@arm.com} * const ItbPageFault; 11911688Sandreas.hansson@arm.com 12011688Sandreas.hansson@arm.comextern class ItbAcvFaultType : public AlphaFault 12111688Sandreas.hansson@arm.com{ 12211688Sandreas.hansson@arm.com public: 12311688Sandreas.hansson@arm.com ItbAcvFaultType(char * newName, int newId, Addr newVect) 12411688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 12511688Sandreas.hansson@arm.com {;} 12611688Sandreas.hansson@arm.com} * const ItbAcvFault; 12711688Sandreas.hansson@arm.com 12811688Sandreas.hansson@arm.comextern class UnimplementedOpcodeFaultType : public AlphaFault 12911688Sandreas.hansson@arm.com{ 13011688Sandreas.hansson@arm.com public: 13111688Sandreas.hansson@arm.com UnimplementedOpcodeFaultType(char * newName, int newId, Addr newVect) 13211688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 13311688Sandreas.hansson@arm.com {;} 13411688Sandreas.hansson@arm.com} * const UnimplementedOpcodeFault; 13511688Sandreas.hansson@arm.com 13611688Sandreas.hansson@arm.comextern class FloatEnableFaultType : public AlphaFault 13711688Sandreas.hansson@arm.com{ 13811688Sandreas.hansson@arm.com public: 13911688Sandreas.hansson@arm.com FloatEnableFaultType(char * newName, int newId, Addr newVect) 14011688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 14113357Sciro.santilli@arm.com {;} 14213357Sciro.santilli@arm.com} * const FloatEnableFault; 14313357Sciro.santilli@arm.com 14413357Sciro.santilli@arm.comextern class PalFaultType : public AlphaFault 14513357Sciro.santilli@arm.com{ 14613357Sciro.santilli@arm.com public: 14713357Sciro.santilli@arm.com PalFaultType(char * newName, int newId, Addr newVect) 14813357Sciro.santilli@arm.com : AlphaFault(newName, newId, newVect) 14911688Sandreas.hansson@arm.com {;} 15011688Sandreas.hansson@arm.com} * const PalFault; 15111688Sandreas.hansson@arm.com 15211688Sandreas.hansson@arm.comextern class IntegerOverflowFaultType : public AlphaFault 15311688Sandreas.hansson@arm.com{ 15411688Sandreas.hansson@arm.com public: 15511688Sandreas.hansson@arm.com IntegerOverflowFaultType(char * newName, int newId, Addr newVect) 15611688Sandreas.hansson@arm.com : AlphaFault(newName, newId, newVect) 15711688Sandreas.hansson@arm.com {;} 15811688Sandreas.hansson@arm.com} * const IntegerOverflowFault; 15911995Sgabeblack@google.com 16011688Sandreas.hansson@arm.comextern Fault ** ListOfFaults[]; 16111688Sandreas.hansson@arm.comextern int NumFaults; 16213432Spau.cabre@metempsy.com 16313432Spau.cabre@metempsy.com#endif // __FAULTS_HH__ 16413432Spau.cabre@metempsy.com