Re: [hatari-devel] Issues with cache hits/misses? |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Both TOS4 and EmuTOS have:
CACR 00003111
Looking at Mikro's post here:
http://dhs.nu/bbs-coding/index.php?request=3608
It seems that in addition to both caches being enabled,
burst mode is also enabled for both.
> IIRC the CPU won't fetch half of an instruction - it will try to complete
> the fetch, so it can fetch beyond the immediate longword needed. But 6
> seems like a lot to me...
Also with burst mode?
> Hmm. The MMU shouldn't affect things. The MMU has its own cache (ATC) but
> not for instructions - for the MMU tables themselves. It can inhibit
> caching but should not affect timing unless it has to fetch a table
> entry, and should not affect hit/miss counts in the CPU caches.
According to (Amiga) WHDL documentation:
"caches on 68030..68060 are controlled by the Cache Control Register (CACR)
and the MMU! In the CACR the caches will be globally enabled or disabled.
Using the MMU single Pages (4 KiB with WHDLoad) will be marked how they can
be cached. On the 68030 a memory page can be Cacheable or NotCacheable."
No idea whether TOS uses MMU to do something like that though
(e.g. set interrupt handler code area to be cached differently).
Maybe TOS just does something differently in presence of MMU...
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |