From 508a9aedf03d887dcc00a8c53caf8cef1ada2937 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sun, 24 Apr 2016 02:19:48 -0700 Subject: Half assed, prefetch based open bus value emulation. Gets BlastEm up to 119/122 in VDP FIFO Testing --- m68k_core_x86.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'm68k_core_x86.c') diff --git a/m68k_core_x86.c b/m68k_core_x86.c index 9882b35..149e84d 100644 --- a/m68k_core_x86.c +++ b/m68k_core_x86.c @@ -2167,6 +2167,11 @@ void translate_out_of_bounds(code_info *code) 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) { -- cgit v1.2.3