D-Cache setting on 68020

User avatar
toastboy
Posts: 69
Joined: Wed Sep 09, 2020 9:20 pm
Has thanked: 13 times
Been thanked: 20 times

D-Cache setting on 68020

Unread post by toastboy »

I'm confused by the behaviour of data cache setting on the 68020 processor options in minimig.

With this option enabled, no data cache is detected by the amiga - for instance using sysinfo to show instruction/data cache state, or command-line tools to show/enable/disable caches. The instruction cache is detected.

Granted, the cache may well be implemented in a way that's not visible to the simulated amiga hardware, which would be in keeping with the 'pretend' 68020 as that chip did not have a data cache.

What's really confusing though is how the amiga behaves with the cache switched on/off.
Using sysinfo as a benchmark, there's no difference in performance between having d-cache switched on or off - the results are identical.

Is the cache setting working? Is it always enabled or disabled regardless of the gui setting?
Am I just "holding it wrong"?

As I say, confused.
User avatar
kathleen
Top Contributor
Posts: 421
Joined: Fri Jun 26, 2020 4:23 am
Location: Belgium
Has thanked: 243 times
Been thanked: 138 times

Re: D-Cache setting on 68020

Unread post by kathleen »

Hi Toastboy,

One year ago, Sorgelig gave some information regarding this D-Cache (see here : https://www.atari-forum.com/viewtopic.p ... 75#p385606)

On my side I saw the benefit by using the D-Cache on some demos where they were boosted compared to w/o.

かすりん

User avatar
Sorgelig
Site Admin
Posts: 890
Joined: Thu May 21, 2020 9:49 pm
Has thanked: 2 times
Been thanked: 214 times

Re: D-Cache setting on 68020

Unread post by Sorgelig »

Sysinfo is not a best benchmark. Its reliability is very low. You can see millions points in SysInfo in emulators while most of them will suck when you run A500 demo such as "State of the Art".
Still it's good to compare the points between version of the same implementation.

Implemented 68020 CPU never had D-Cache, so apps obviously cannot detect it as they rely on CPU features, not actual test. So D-Cache is fully transparent for apps. Effect of using D-Cache depends on specific app/game.
User avatar
toastboy
Posts: 69
Joined: Wed Sep 09, 2020 9:20 pm
Has thanked: 13 times
Been thanked: 20 times

Re: D-Cache setting on 68020

Unread post by toastboy »

Thanks for the explanation sorgelig. Surprised you have time to reply to anything with all the recent aspect-ratio changes :-)
User avatar
Hodor
Posts: 142
Joined: Mon May 25, 2020 8:29 am
Has thanked: 378 times
Been thanked: 30 times

Re: D-Cache setting on 68020

Unread post by Hodor »

Some games, for example, work better with D-Cache off. WHDLoad version of Uridium II shows sound glitches with that option on, so you need to turn it off.
Insert Disk Two
Posts: 221
Joined: Sun May 24, 2020 7:59 pm
Has thanked: 16 times
Been thanked: 28 times

Re: D-Cache setting on 68020

Unread post by Insert Disk Two »

Wrong thread sorry!
Post Reply