Re: [hatari-devel] MegaSTE cache emulation issues

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Nicolas Pomarède schrieb:

That's strange, because M68000_BusError() will flush caches in the case
of the MegaSTE, I need to check this.

This might just a matter of the order in which things happen.

For example in this code path, I think (but please double check my analysis!) that the cache flush in M68000_BusError() is called via wait_cpu_cycle_write_megaste_16():
https://framagit.org/hatari/hatari/-/blob/v2.6.0/src/m68000.c?ref_type=tags#L1637
... whereas the cache update via MegaSTE_Cache_Write() only happens *after* the flush.

Regards
Christian
--
Christian Zietz  -  CHZ-Soft  -  czietz@xxxxxxx
WWW: https://www.chzsoft.de/
New GnuPG-Key-ID: 0x8708B34C827B159E


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/