summaryrefslogtreecommitdiff
path: root/backend_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-26 15:45:31 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-26 15:45:31 -0800
commite8a9c14ec2e0b75eb1aef1c2a77936c6f7fd8326 (patch)
tree106ed1da8b71cd970067d673dddb30dc0281c001 /backend_x86.c
parent8ab499c765335f363aa39c3a7e1c56ba0b5fb9eb (diff)
Fix a few bugs introduced in the Z80 core from the adjustments to fit with the code gen refactor
Diffstat (limited to 'backend_x86.c')
-rw-r--r--backend_x86.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend_x86.c b/backend_x86.c
index 482e9c3..ec16a16 100644
--- a/backend_x86.c
+++ b/backend_x86.c
@@ -28,6 +28,11 @@ void check_cycles(cpu_options * opts)
*jmp_off = code->cur - (jmp_off+1);
}
+void check_code_prologue(code_info *code)
+{
+ check_alloc_code(code, MAX_INST_LEN*4);
+}
+
code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk const * memmap, uint32_t num_chunks, ftype fun_type, code_ptr *after_inc)
{
code_info *code = &opts->code;