diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-11-15 12:58:15 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-11-15 12:58:15 +0100 |
| commit | 517a5b68440cac900255736b1f4c2d85548f587c (patch) | |
| tree | a0c03745474ab57b2923033ed22b6d07fbf02e52 /src | |
| parent | d4f98902a0dab74a3f7791cc863acb5751d3f531 (diff) | |
| download | box64-517a5b68440cac900255736b1f4c2d85548f587c.tar.gz box64-517a5b68440cac900255736b1f4c2d85548f587c.zip | |
[DYNAREC] Pre-allocate more instructions on FillBlock64
Diffstat (limited to 'src')
| -rwxr-xr-x | src/dynarec/dynarec_native.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/dynarec_native.c b/src/dynarec/dynarec_native.c index 51900708..b4c93c74 100755 --- a/src/dynarec/dynarec_native.c +++ b/src/dynarec/dynarec_native.c @@ -441,7 +441,7 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr) { helper.dynablock = block; helper.start = addr; uintptr_t start = addr; - helper.cap = 64; // needs epilog handling + helper.cap = 128; helper.insts = (instruction_native_t*)customCalloc(helper.cap, sizeof(instruction_native_t)); // pass 0, addresses, x64 jump addresses, overall size of the block uintptr_t end = native_pass0(&helper, addr); |