filename | test/lib.h |
changeset | 976:e57a25d9eb7d |
prev | 815:866c103d72cd |
author | nkeynes |
date | Fri Dec 02 18:14:27 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Handle calls to sh4_disasm_instruction when the memory isn't mapped (as can happen if we try to print a translated block that's been unmapped) |
file | annotate | diff | log | raw |
1.1 --- a/test/lib.h Mon Aug 18 12:20:28 2008 +00001.2 +++ b/test/lib.h Fri Dec 02 18:14:27 2011 +10001.3 @@ -61,4 +61,23 @@1.4 #define CHECK_IEQUALS( a, b ) if( a != b ) { fprintf(stderr, "Assertion failed at %s:%d: expected %08X, but was %08X\n", __FILE__, __LINE__, a, b ); return -1; }1.5 #define DMA_ALIGN(x) ((void *)((((unsigned int)(x))+0x1F)&0xFFFFFFE0))1.7 +1.8 +/* SH4 Exceptions */1.9 +#define POWERON 0x000 /* reset vector */1.10 +#define MANRESET 0x020 /* reset vector */1.11 +#define OTLBMULTIHIT 0x140 /* reset vector */1.12 +#define RTLBMISS 0x040 /* TLB vector */1.13 +#define WTLBMISS 0x060 /* TLB vector */1.14 +#define FIRSTWRITE 0x0801.15 +#define READPROT 0x0A01.16 +#define WRITEPROT 0x0C01.17 +#define RADDERR 0x0E01.18 +#define WADDERR 0x1001.19 +#define FPUEXC 0x1201.20 +#define ILLSLOT 0x1A01.21 +#define RESINST 0x1801.22 +#define TRAP 0x1601.23 +#define FPUDIS 0x8001.24 +#define SLOTFPUDIS 0x8201.25 +1.26 #endif
.