Re: [hatari-devel] Adding cache support for the MegaSTE -> DONE |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi Nicolas,
On 4.9.2024 0.12, Nicolas Pomarède wrote:
Note that the cache needs to be flushed on every transfer when using
Gemdos HD emulation, or normal FDC / HDC. Else this would transfer data
to RAM without invalidating the cache (which has no means to know RAM
has been modified), thus creating crashes in the emulated program sooner
or later.
This commit seems dubious:
https://git.tuxfamily.org/hatari/hatari.git/commit/?id=4c803f1b952826af7b3409225e4000dee1eea62e
* Why only "1" byte is flushed instead of "len" bytes (whole range)? [1]
* Why flushing is added only to SafeCopy, and not to SafeClear?
- Eero
[1] The called flush functions in m68000.c don't do anything with the
passed addr + size args, but everything else tries to pass valid values
to them, so this should too.