1 /* Useful constants for MIPS exception codes.
2    Copyright 2001 Brian R. Gaeke.
3 
4 This file is part of VMIPS.
5 
6 VMIPS is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2 of the License, or (at your
9 option) any later version.
10 
11 VMIPS is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 for more details.
15 
16 You should have received a copy of the GNU General Public License along
17 with VMIPS; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
19 
20 #ifndef _EXCNAMES_H_
21 #define _EXCNAMES_H_
22 
23 /* Exceptions - Cause register ExcCode field */
24 #define Int 0		/* Interrupt */
25 #define Mod 1		/* TLB modification exception */
26 #define TLBL 2		/* TLB exception (load or instruction fetch) */
27 #define TLBS 3		/* TLB exception (store) */
28 #define AdEL 4		/* Address error exception (load or instruction fetch) */
29 #define AdES 5		/* Address error exception (store) */
30 #define IBE 6		/* Instruction bus error */
31 #define DBE 7		/* Data (load or store) bus error */
32 #define Sys 8		/* SYSCALL exception */
33 #define Bp 9		/* Breakpoint exception (BREAK instruction) */
34 #define RI 10		/* Reserved instruction exception */
35 #define CpU 11		/* Coprocessor Unusable */
36 #define Ov 12		/* Arithmetic Overflow */
37 #define Tr 13		/* Trap (R4k/R6k only) */
38 #define NCD 14		/* LDCz or SDCz to uncached address (R6k) */
39 #define VCEI 14		/* Virtual Coherency Exception (instruction) (R4k) */
40 #define MV 15		/* Machine check exception (R6k) */
41 #define FPE 15		/* Floating-point exception (R4k) */
42 /* 16-22 - reserved */
43 #define WATCH 23	/* Reference to WatchHi/WatchLo address detected (R4k) */
44 /* 24-30 - reserved */
45 #define VCED 31		/* Virtual Coherency Exception (data) (R4k) */
46 
47 #endif /* _EXCNAMES_H_ */
48