Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
980:928442068afe | 981:902c53d9c16f |
---|---|
2163 | 2163 |
2164 void translate_out_of_bounds(code_info *code) | 2164 void translate_out_of_bounds(code_info *code) |
2165 { | 2165 { |
2166 xor_rr(code, RDI, RDI, SZ_D); | 2166 xor_rr(code, RDI, RDI, SZ_D); |
2167 call_args(code, (code_ptr)exit, 1, RDI); | 2167 call_args(code, (code_ptr)exit, 1, RDI); |
2168 } | |
2169 | |
2170 void m68k_set_last_prefetch(m68k_options *opts, uint32_t address) | |
2171 { | |
2172 mov_irdisp(&opts->gen.code, address, opts->gen.context_reg, offsetof(m68k_context, last_prefetch_address), SZ_D); | |
2168 } | 2173 } |
2169 | 2174 |
2170 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst) | 2175 void nop_fill_or_jmp_next(code_info *code, code_ptr old_end, code_ptr next_inst) |
2171 { | 2176 { |
2172 if (next_inst == old_end && next_inst - code->cur < 2) { | 2177 if (next_inst == old_end && next_inst - code->cur < 2) { |