diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-16 15:44:54 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-16 15:44:54 +0200 |
| commit | 16be2bd305ac12dba589944b04065c6d8e435a92 (patch) | |
| tree | 0a66e0a681fcfc846824258f82149aff983c816d /src | |
| parent | 7cf6ee06a1883452306ceb2342442a581afb2a6b (diff) | |
| download | box64-16be2bd305ac12dba589944b04065c6d8e435a92.tar.gz box64-16be2bd305ac12dba589944b04065c6d8e435a92.zip | |
[DYNAREC] Smal fix on the x86 size computation for sons of dynablocks
Diffstat (limited to 'src')
| -rwxr-xr-x | src/dynarec/dynarec_arm64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dynarec/dynarec_arm64.c b/src/dynarec/dynarec_arm64.c index 40c2899b..b7742af1 100755 --- a/src/dynarec/dynarec_arm64.c +++ b/src/dynarec/dynarec_arm64.c @@ -470,7 +470,7 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr) { if(created) { // avoid breaking a working block! son->block = helper.sons_arm[i]; son->x64_addr = (void*)helper.sons_x64[i]; - son->x64_size = end-helper.sons_x64[i]; + son->x64_size = end-helper.sons_x64[i]+1; if(!son->x64_size) {printf_log(LOG_NONE, "Warning, son with null x64 size! (@%p / ARM=%p)", son->x64_addr, son->block);} son->father = block; son->size = sz + son->block - block->block; // update size count, for debugging |