X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Flightrec%2Fmem.h;h=9984604e442980ce09696f50f517b0a72c1b4d93;hb=4ec65cf9e9d59e5edc5e86a58000e14060fe6b18;hp=7f04ce59609ee7979afa3d1f8a64738270c44153;hpb=a093e81fbfc1c588b091656844b26684ec3dc01d;p=pcsx_rearmed.git diff --git a/libpcsxcore/lightrec/mem.h b/libpcsxcore/lightrec/mem.h index 7f04ce59..9984604e 100644 --- a/libpcsxcore/lightrec/mem.h +++ b/libpcsxcore/lightrec/mem.h @@ -6,7 +6,33 @@ #ifndef __LIGHTREC_MEM_H__ #define __LIGHTREC_MEM_H__ +#ifdef LIGHTREC + +#ifdef HW_WUP /* WiiU */ +# define WUP_RWX_MEM_BASE 0x00802000 +# define WUP_RWX_MEM_END 0x01000000 +# define CODE_BUFFER_SIZE_DFT (WUP_RWX_MEM_END - WUP_RWX_MEM_BASE) +#else +# define CODE_BUFFER_SIZE_DFT (8 * 1024 * 1024) +#endif + +#ifndef CODE_BUFFER_SIZE +#define CODE_BUFFER_SIZE CODE_BUFFER_SIZE_DFT +#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__ */