Mercurial > repos > blastem
diff m68k_core_x86.c @ 981:902c53d9c16f
Half assed, prefetch based open bus value emulation. Gets BlastEm up to 119/122 in VDP FIFO Testing
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 24 Apr 2016 02:19:48 -0700 |
parents | 771875b5f519 |
children | 751280fb4494 |
line wrap: on
line diff
--- a/m68k_core_x86.c Sun Apr 24 01:24:38 2016 -0700 +++ b/m68k_core_x86.c Sun Apr 24 02:19:48 2016 -0700 @@ -2167,6 +2167,11 @@ call_args(code, (code_ptr)exit, 1, RDI); } +void m68k_set_last_prefetch(m68k_options *opts, uint32_t address) +{ + mov_irdisp(&opts->gen.code, address, opts->gen.context_reg, offsetof(m68k_context, last_prefetch_address), SZ_D); +} + void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst) { if (next_inst == old_end && next_inst - code->cur < 2) {