mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 18:45:43 -04:00
CPU/Recompiler: Reduce armv7 code buffer size
This commit is contained in:
parent
f6bd4bfcf4
commit
0793f98c87
@ -25,8 +25,14 @@ constexpr bool USE_BLOCK_LINKING = true;
|
|||||||
#define USE_STATIC_CODE_BUFFER 1
|
#define USE_STATIC_CODE_BUFFER 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(AARCH32)
|
||||||
|
// Use a smaller code buffer size on AArch32 to have a better chance of being in range.
|
||||||
|
static constexpr u32 RECOMPILER_CODE_CACHE_SIZE = 16 * 1024 * 1024;
|
||||||
|
static constexpr u32 RECOMPILER_FAR_CODE_CACHE_SIZE = 8 * 1024 * 1024;
|
||||||
|
#else
|
||||||
static constexpr u32 RECOMPILER_CODE_CACHE_SIZE = 32 * 1024 * 1024;
|
static constexpr u32 RECOMPILER_CODE_CACHE_SIZE = 32 * 1024 * 1024;
|
||||||
static constexpr u32 RECOMPILER_FAR_CODE_CACHE_SIZE = 32 * 1024 * 1024;
|
static constexpr u32 RECOMPILER_FAR_CODE_CACHE_SIZE = 16 * 1024 * 1024;
|
||||||
|
#endif
|
||||||
static constexpr u32 CODE_WRITE_FAULT_THRESHOLD_FOR_SLOWMEM = 10;
|
static constexpr u32 CODE_WRITE_FAULT_THRESHOLD_FOR_SLOWMEM = 10;
|
||||||
|
|
||||||
#ifdef USE_STATIC_CODE_BUFFER
|
#ifdef USE_STATIC_CODE_BUFFER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user