Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 367:9c52dcbad3fb
prev359:c588dce7ebde
next369:4b4223e7d720
author nkeynes
date Tue Sep 04 08:38:33 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Move EXC_* codes to sh4core.h and rename to match the EX_* codes
file annotate diff log raw
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:38:33 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
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.7 *
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.13
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.24 +
1.25 /* Exceptions (for use with sh4_raise_exception) */
1.26
1.27 #define EX_ILLEGAL_INSTRUCTION 0x180, 0x100
.