comparison backend_x86.c @ 1692:5dacaef602a7 segacd

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 05 Jan 2019 00:58:08 -0800
parents 2a5649a767e7
children 45c4b74e7676
comparison
equal deleted inserted replaced
1504:95b3a1a8b26c 1692:5dacaef602a7
242 add_rdispr(code, RSP, 0, opts->scratch2, SZ_PTR); 242 add_rdispr(code, RSP, 0, opts->scratch2, SZ_PTR);
243 mov_rrind(code, opts->scratch1, opts->scratch2, tmp_size); 243 mov_rrind(code, opts->scratch1, opts->scratch2, tmp_size);
244 if (is_write && (memmap[chunk].flags & MMAP_CODE)) { 244 if (is_write && (memmap[chunk].flags & MMAP_CODE)) {
245 pop_r(code, opts->scratch2); 245 pop_r(code, opts->scratch2);
246 } else { 246 } else {
247 add_ir(code, sizeof(void*), RSP, SZ_D); 247 add_ir(code, sizeof(void*), RSP, SZ_PTR);
248 code->stack_off -= sizeof(void *); 248 code->stack_off -= sizeof(void *);
249 } 249 }
250 } else { 250 } else {
251 push_r(code, opts->scratch2); 251 push_r(code, opts->scratch2);
252 mov_ir(code, (intptr_t)memmap[chunk].buffer, opts->scratch2, SZ_PTR); 252 mov_ir(code, (intptr_t)memmap[chunk].buffer, opts->scratch2, SZ_PTR);