summaryrefslogtreecommitdiff
path: root/backend_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-25 08:40:45 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-25 08:40:45 -0800
commit77f239c97ce5d496998c3b8a07d84d27b5d5984f (patch)
treeb9e7951e055fa80a7afc925bec7d72193cead1f6 /backend_x86.c
parent621afa83ca859c29efcf57beef5b21c918161e78 (diff)
Partially working change to do proper stack alignment rather than doing a lame alignment check when calling a C compile dfunction. 68K core seems okay, but Z80 is busted.
Diffstat (limited to 'backend_x86.c')
-rw-r--r--backend_x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend_x86.c b/backend_x86.c
index 56b0f8d..2892f83 100644
--- a/backend_x86.c
+++ b/backend_x86.c
@@ -173,6 +173,7 @@ code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk const * memmap, uint32_t n
pop_r(code, opts->scratch2);
} else {
add_ir(code, sizeof(void*), RSP, SZ_D);
+ code->stack_off -= sizeof(void *);
}
} else {
push_r(code, opts->scratch2);