1.1 --- a/src/sh4/sh4core.h Thu Aug 23 12:33:27 2007 +0000
1.2 +++ b/src/sh4/sh4core.h Tue Sep 04 08:40:23 2007 +0000
1.5 - * $Id: sh4core.h,v 1.19 2007-08-23 12:33:27 nkeynes Exp $
1.6 + * $Id: sh4core.h,v 1.20 2007-09-04 08:38:33 nkeynes Exp $
1.8 * This file defines the internal functions exported/used by the SH4 core,
1.9 * except for disassembly functions defined in sh4dasm.h
1.10 @@ -179,6 +179,17 @@
1.11 #define FPULf *((float *)&sh4r.fpul)
1.12 #define FPULi (sh4r.fpul)
1.14 +/* CPU-generated exception code/vector pairs */
1.15 +#define EXC_POWER_RESET 0x000 /* vector special */
1.16 +#define EXC_MANUAL_RESET 0x020
1.17 +#define EXC_DATA_ADDR_READ 0x0E0
1.18 +#define EXC_DATA_ADDR_WRITE 0x100
1.19 +#define EXC_SLOT_ILLEGAL 0x1A0
1.20 +#define EXC_ILLEGAL 0x180
1.21 +#define EXC_TRAP 0x160
1.22 +#define EXC_FPU_DISABLED 0x800
1.23 +#define EXC_SLOT_FPU_DISABLED 0x820
1.25 /* Exceptions (for use with sh4_raise_exception) */
1.27 #define EX_ILLEGAL_INSTRUCTION 0x180, 0x100