Mercurial > repos > blastem
diff backend_x86.c @ 601:f0061e3d2ad9
Fix a few bugs introduced in the Z80 core from the adjustments to fit with the code gen refactor
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 26 Dec 2014 15:45:31 -0800 |
parents | 68f86ca4bb32 |
children | 39d7d463ed5b |
line wrap: on
line diff
--- a/backend_x86.c Fri Dec 26 13:42:25 2014 -0800 +++ b/backend_x86.c Fri Dec 26 15:45:31 2014 -0800 @@ -28,6 +28,11 @@ *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;