X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Flightrec%2Fmem.h;h=f746650b54358480882f538eac8131577aea955f;hb=82d049361e59ca58ebf85d17b8a2324a2a9181a3;hp=d747c174301ac1c5b8f50132b66d0f9a8a5d32ff;hpb=473f5cc63f9942866e01c7c84d151e8157cdb6ee;p=pcsx_rearmed.git diff --git a/libpcsxcore/lightrec/mem.h b/libpcsxcore/lightrec/mem.h index d747c174..f746650b 100644 --- a/libpcsxcore/lightrec/mem.h +++ b/libpcsxcore/lightrec/mem.h @@ -6,11 +6,29 @@ #ifndef __LIGHTREC_MEM_H__ #define __LIGHTREC_MEM_H__ -#define CODE_BUFFER_SIZE (8 * 1024 * 1024) +#ifdef LIGHTREC + +#ifdef HW_WUP /* WiiU */ +# define WUP_RWX_MEM_BASE 0x00802000 +# define WUP_RWX_MEM_END 0x01000000 +# define CODE_BUFFER_SIZE (WUP_RWX_MEM_END - WUP_RWX_MEM_BASE) +#else +# define CODE_BUFFER_SIZE (8 * 1024 * 1024) +#endif extern void *code_buffer; int lightrec_init_mmap(void); void lightrec_free_mmap(void); +#else /* if !LIGHTREC */ + +#define lightrec_init_mmap() -1 /* should not be called */ +#define lightrec_free_mmap() + +#undef LIGHTREC_CUSTOM_MAP +#define LIGHTREC_CUSTOM_MAP 0 + +#endif + #endif /* __LIGHTREC_MEM_H__ */