Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: trap_types.h | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | !! WARNING: | |
39 | !! For bit set/reset masks, use "X * 2**Y" instead of "X * 2^Y". | |
40 | !! "^" means "exponentiation" under SunOS:/bin/m4, but | |
41 | !! means "bitwise xor" under Solaris:/usr/ccs/bin/m4. | |
42 | !! "**" is acceptable notation for exponentiation with either. | |
43 | ||
44 | ! Trap Types (TT) 6/23/93 lyoungs | |
45 | ||
46 | #define POWERON_RESET_TT 0x001 | |
47 | #define WATCHDOG_RESET_TT 0x002 | |
48 | #define EXTERNAL_RESET_TT 0x003 | |
49 | #define SOFTWARE_RESET_TT 0x004 | |
50 | #define REDMODE_TT 0x005 | |
51 | #define INSTRUCTION_ACCESS_EXCEPTION_TT 0x008 | |
52 | #define IA_MMU_MISS_TT 0x009 | |
53 | #define INSTRUCTION_ACCESS_ERROR_TT 0x00A | |
54 | #define ILLEGAL_TT 0x010 | |
55 | #define PRIVILEGED_OPCODE_TT 0x011 | |
56 | #define UNIMPLEMENTED_LDD_TT 0x012 | |
57 | #define UNIMPLEMENTED_STD_TT 0x013 | |
58 | #define FP_DISABLED_TT 0x020 | |
59 | #define FP_IEEE_754_TT 0x021 | |
60 | #define FP_EXCP_OTHER_TT 0x022 | |
61 | #define TAG_OVERFLOW_TT 0x023 | |
62 | #define CLEAN_WIN_TT 0x024 | |
63 | #define DIV_ZERO_TT 0x028 | |
64 | #define INT_PROC_ERROR_TT 0x029 | |
65 | #define DATA_ACCESS_EXCEPTION_TT 0x030 | |
66 | #define DA_MMU_MISS_TT 0x031 | |
67 | #define DATA_ACCESS_ERROR_TT 0x032 | |
68 | #define DATA_PROT_TT 0x033 | |
69 | #define MEM_NONALIGNED_TT 0x034 | |
70 | #define LDDF_MEM_NONALIGNED_TT 0x035 | |
71 | #define STDF_MEM_NONALIGNED_TT 0x036 | |
72 | #define PRIVILEGED_ACTION_TT 0x037 | |
73 | #define LDQF_MEM_NONALIGNED_TT 0x038 | |
74 | #define STQF_MEM_NONALIGNED_TT 0x039 | |
75 | #define ASYNC_DATA_ERROR_TT 0x040 | |
76 | #define INTERRUPT_LEVEL_1_TT 0x041 | |
77 | #define INTERRUPT_LEVEL_2_TT 0x042 | |
78 | #define INTERRUPT_LEVEL_3_TT 0x043 | |
79 | #define INTERRUPT_LEVEL_4_TT 0x044 | |
80 | #define INTERRUPT_LEVEL_5_TT 0x045 | |
81 | #define INTERRUPT_LEVEL_6_TT 0x046 | |
82 | #define INTERRUPT_LEVEL_7_TT 0x047 | |
83 | #define INTERRUPT_LEVEL_8_TT 0x048 | |
84 | #define INTERRUPT_LEVEL_9_TT 0x049 | |
85 | #define INTERRUPT_LEVEL_10_TT 0x04A | |
86 | #define INTERRUPT_LEVEL_11_TT 0x04B | |
87 | #define INTERRUPT_LEVEL_12_TT 0x04C | |
88 | #define INTERRUPT_LEVEL_13_TT 0x04D | |
89 | #define INTERRUPT_LEVEL_14_TT 0x04E | |
90 | #define INTERRUPT_LEVEL_15_TT 0x04F | |
91 | #define IMPL_DEP_XCPN_0_TT 0x060 | |
92 | #define PA_WATCHPOINT_TT 0x061 | |
93 | #define VA_WATCHPOINT_TT 0x062 | |
94 | #define IA_FAST_MMU_MISS_TT 0x064 | |
95 | #define DA_FAST_MMU_MISS_TT 0x068 | |
96 | #define FAST_DATA_PROT_TT 0x06C | |
97 | #define FAST_CORRECTABLE_ECC_ERROR_TT 0x070 | |
98 | ! Please add spill/fill if you need them -- lyoungs | |
99 | #define TICC_TT(N) N | |
100 |