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 Wed Feb 15 17:54:51 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE_ARB for frame buffers, for
systems that don't provide the latter (and there's not really much
difference anyway).
Add macro wrangling for GL_DEPTH24_STENCIL8 format
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 Wed Feb 15 17:54:51 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
.