Add new codegen memory allocator. This allows the recompiler to allocate memory from a central pool as required. This central pool is by default 64 MB on x86, x86-64 and ARMv8, and 32 MB on ARMv7.
The current design does not allow for ARMv8 literal pools, therefore these have been removed.
This commit is contained in:
parent
56a4d5cf83
commit
66fba50e06
26 changed files with 1339 additions and 667 deletions
|
|
@ -2,18 +2,14 @@
|
|||
|
||||
#define BLOCK_SIZE 0x4000
|
||||
#define BLOCK_MASK 0x3fff
|
||||
#define BLOCK_START 0
|
||||
#define BLOCK_START 32
|
||||
|
||||
#define HASH_SIZE 0x20000
|
||||
#define HASH_MASK 0x1ffff
|
||||
|
||||
#define HASH(l) ((l) & 0x1ffff)
|
||||
|
||||
/*Hack until better memory management written*/
|
||||
#define BLOCK_EXIT_OFFSET (BLOCK_DATA_SIZE - 16)
|
||||
//#define BLOCK_EXIT_OFFSET 0xfff0
|
||||
/*#define BLOCK_EXIT_OFFSET 0x7f0*/
|
||||
#define BLOCK_GPF_OFFSET (BLOCK_EXIT_OFFSET - 20)
|
||||
#define BLOCK_EXIT_OFFSET 20
|
||||
#define BLOCK_GPF_OFFSET 0
|
||||
|
||||
/*#define BLOCK_MAX 1720*/
|
||||
#define BLOCK_MAX 65208
|
||||
#define BLOCK_MAX 0x3c0
|
||||
|
|
|
|||
Loading…
Reference in a new issue