Mercurial > repos > blastem
changeset 1511:2a5649a767e7
Fix accidental add to RSP with SZ_D and SZ_PTR. Using SZ_D breakse when the stack is located outside of the 32-bit addressable range
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 31 Dec 2017 14:08:47 -0800 |
parents | f5d693bd694a |
children | 8158c2757605 |
files | backend_x86.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/backend_x86.c Sun Dec 31 09:53:33 2017 -0800 +++ b/backend_x86.c Sun Dec 31 14:08:47 2017 -0800 @@ -244,7 +244,7 @@ if (is_write && (memmap[chunk].flags & MMAP_CODE)) { pop_r(code, opts->scratch2); } else { - add_ir(code, sizeof(void*), RSP, SZ_D); + add_ir(code, sizeof(void*), RSP, SZ_PTR); code->stack_off -= sizeof(void *); } } else {