faults.hh revision 2
19259SAli.Saidi@ARM.com/*
29259SAli.Saidi@ARM.com * Copyright (c) 2003 The Regents of The University of Michigan
39259SAli.Saidi@ARM.com * All rights reserved.
49259SAli.Saidi@ARM.com *
59259SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without
69259SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are
79259SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright
89259SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer;
99259SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright
109259SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the
119259SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution;
129259SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its
139259SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from
149259SAli.Saidi@ARM.com * this software without specific prior written permission.
159259SAli.Saidi@ARM.com *
169259SAli.Saidi@ARM.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
179259SAli.Saidi@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
189259SAli.Saidi@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
199259SAli.Saidi@ARM.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
209259SAli.Saidi@ARM.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
219259SAli.Saidi@ARM.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
229259SAli.Saidi@ARM.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
239259SAli.Saidi@ARM.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
249259SAli.Saidi@ARM.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
259259SAli.Saidi@ARM.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
269259SAli.Saidi@ARM.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
279259SAli.Saidi@ARM.com */
289259SAli.Saidi@ARM.com
299259SAli.Saidi@ARM.com#ifndef __FAULTS_HH__
309259SAli.Saidi@ARM.com#define __FAULTS_HH__
319259SAli.Saidi@ARM.com
329259SAli.Saidi@ARM.comenum Fault {
339259SAli.Saidi@ARM.com    No_Fault,
349259SAli.Saidi@ARM.com    Reset_Fault,		// processor reset
359259SAli.Saidi@ARM.com    Machine_Check_Fault,	// machine check (also internal S/W fault)
369259SAli.Saidi@ARM.com    Arithmetic_Fault,		// FP exception
379259SAli.Saidi@ARM.com    Interrupt_Fault,		// external interrupt
389259SAli.Saidi@ARM.com    Ndtb_Miss_Fault,		// DTB miss
399259SAli.Saidi@ARM.com    Pdtb_Miss_Fault,		// nested DTB miss
409259SAli.Saidi@ARM.com    Alignment_Fault,		// unaligned access
419259SAli.Saidi@ARM.com    Dtb_Fault_Fault,		// DTB page fault
429259SAli.Saidi@ARM.com    Dtb_Acv_Fault,		// DTB access violation
439259SAli.Saidi@ARM.com    Itb_Miss_Fault,		// ITB miss
449259SAli.Saidi@ARM.com    Itb_Fault_Fault,		// ITB page fault
459259SAli.Saidi@ARM.com    Itb_Acv_Fault,		// ITB access violation
469259SAli.Saidi@ARM.com    Unimplemented_Opcode_Fault,	// invalid/unimplemented instruction
479259SAli.Saidi@ARM.com    Fen_Fault,			// FP not-enabled fault
489259SAli.Saidi@ARM.com    Pal_Fault,			// call_pal S/W interrupt
499259SAli.Saidi@ARM.com    Integer_Overflow_Fault,
509259SAli.Saidi@ARM.com    Num_Faults			// number of faults
519259SAli.Saidi@ARM.com};
529259SAli.Saidi@ARM.com
539259SAli.Saidi@ARM.comconst char *
549259SAli.Saidi@ARM.comFaultName(int index);
559259SAli.Saidi@ARM.com
569259SAli.Saidi@ARM.com#endif // __FAULTS_HH__
579259SAli.Saidi@ARM.com