2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #include "arch/alpha/faults.hh"
31 ResetFaultType
* ResetFault
= new ResetFaultType("reset", 1, 0x0001);
32 ArithmeticFaultType
* ArithmeticFault
= new ArithmeticFaultType("arith", 3, 0x0501);
33 InterruptFaultType
* InterruptFault
= new InterruptFaultType("interrupt", 4, 0x0101);
34 NDtbMissFaultType
* NDtbMissFault
= new NDtbMissFaultType("dtb_miss_single", 5, 0x0201);
35 PDtbMissFaultType
* PDtbMissFault
= new PDtbMissFaultType("dtb_miss_double", 6, 0x0281);
36 DtbPageFaultType
* DtbPageFault
= new DtbPageFaultType("dfault", 8, 0x0381);
37 DtbAcvFaultType
* DtbAcvFault
= new DtbAcvFaultType("dfault", 9, 0x0381);
38 ItbMissFaultType
* ItbMissFault
= new ItbMissFaultType("itbmiss", 10, 0x0181);
39 ItbPageFaultType
* ItbPageFault
= new ItbPageFaultType("itbmiss", 11, 0x0181);
40 ItbAcvFaultType
* ItbAcvFault
= new ItbAcvFaultType("iaccvio", 12, 0x0081);
41 UnimplementedOpcodeFaultType
* UnimplementedOpcodeFault
= new UnimplementedOpcodeFaultType("opdec", 13, 0x0481);
42 FloatEnableFaultType
* FloatEnableFault
= new FloatEnableFaultType("fen", 14, 0x0581);
43 PalFaultType
* PalFault
= new PalFaultType("pal", 15, 0x2001);
44 IntegerOverflowFaultType
* IntegerOverflowFault
= new IntegerOverflowFaultType("intover", 16, 0x0501);
46 Fault
** ListOfFaults
[] = {
48 (Fault
**)&ResetFault
,
49 (Fault
**)&MachineCheckFault
,
50 (Fault
**)&ArithmeticFault
,
51 (Fault
**)&InterruptFault
,
52 (Fault
**)&NDtbMissFault
,
53 (Fault
**)&PDtbMissFault
,
54 (Fault
**)&AlignmentFault
,
55 (Fault
**)&DtbPageFault
,
56 (Fault
**)&DtbAcvFault
,
57 (Fault
**)&ItbMissFault
,
58 (Fault
**)&ItbPageFault
,
59 (Fault
**)&ItbAcvFault
,
60 (Fault
**)&UnimplementedOpcodeFault
,
61 (Fault
**)&FloatEnableFault
,
63 (Fault
**)&IntegerOverflowFault
,
64 (Fault
**)&FakeMemFault
67 int NumFaults
= sizeof(ListOfFaults
) / sizeof(Fault
**);