Re: [hatari-devel] Issues with cache hits/misses?

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


Le 24/05/2015 23:56, Eero Tamminen a écrit :

It prints "run_2ce".

That's with following system settings:
- Falcon emulation
- 68030
- prefetch mode
- cycle exact

Same thing with "run_2p" i.e. "--cpu-exact no".


Hi

this should now be fixed. Memory regions needed to be defined as "cachable" in order to be used by the 68030 data cache (else cache was considered disabled, even if CACR was enabled).

Then a problem appeared in newcpu.c where data cache itself had a bug where returned values were not correct in case of a 'hit'.

So, data cache will now work in 68030 when cycle exact mode is enabled.

But note that this will be *very, very slow*. Managing the cache takes a lot of cpu, so maybe we should have an option to disable 68030 cache and keep it enabled only when people want to profile some code.


Nicolas





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