enabled the RDP range checks by default for now (nw)

this reports some out-of-bounds accesses only ubsan would report
otherwise - happens with e.g. n64 -cart nbaliv99u
This commit is contained in:
Oliver Stöneberg 2014-11-06 16:03:45 +01:00
parent 2a7ba1651f
commit e0c35889d9

View File

@ -56,7 +56,7 @@
#define MEM16_LIMIT 0x3fffff #define MEM16_LIMIT 0x3fffff
#define MEM32_LIMIT 0x1fffff #define MEM32_LIMIT 0x1fffff
#define RDP_RANGE_CHECK (0) #define RDP_RANGE_CHECK (1)
#if RDP_RANGE_CHECK #if RDP_RANGE_CHECK
#define CHECK8(in) if(rdp_range_check((in))) { printf("Check8: Address %08x out of range!\n", (in)); fflush(stdout); fatalerror("Address %08x out of range!\n", (in)); } #define CHECK8(in) if(rdp_range_check((in))) { printf("Check8: Address %08x out of range!\n", (in)); fflush(stdout); fatalerror("Address %08x out of range!\n", (in)); }