Also maintain a list of memory pages with dirty code blocks that can be evicted. This allows the recompiler to evict dirty blocks in preference to freeing usable blocks when the free list is empty. Increase the number of available code blocks on x86. Increase the non-ARM code allocator memory to 128 MB. This reduces the amount of code block churning when running software with a lot of code, eg Windows XP.
12 lines
237 B
C
12 lines
237 B
C
#include "codegen_backend_x86_defs.h"
|
|
|
|
#define BLOCK_SIZE 0x10000
|
|
#define BLOCK_MASK 0xffff
|
|
#define BLOCK_START 0
|
|
|
|
#define HASH_SIZE 0x20000
|
|
#define HASH_MASK 0x1ffff
|
|
|
|
#define HASH(l) ((l) & 0x1ffff)
|
|
|
|
#define BLOCK_MAX 0x3c0
|