Search
lxdream.org :: lxdream/test/lib.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/lib.h
changeset 976:e57a25d9eb7d
prev815:866c103d72cd
author nkeynes
date Tue Feb 28 18:22:52 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Add a GL-only video driver for android usage (since the Java code is
responsible for creating the context)
file annotate diff log raw
1.1 --- a/test/lib.h Mon Aug 18 12:20:28 2008 +0000
1.2 +++ b/test/lib.h Tue Feb 28 18:22:52 2012 +1000
1.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.6
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 0x080
1.15 +#define READPROT 0x0A0
1.16 +#define WRITEPROT 0x0C0
1.17 +#define RADDERR 0x0E0
1.18 +#define WADDERR 0x100
1.19 +#define FPUEXC 0x120
1.20 +#define ILLSLOT 0x1A0
1.21 +#define RESINST 0x180
1.22 +#define TRAP 0x160
1.23 +#define FPUDIS 0x800
1.24 +#define SLOTFPUDIS 0x820
1.25 +
1.26 #endif
.