I'm trying to get my head around doing framesyncronized c2p. By this I mean running the c2p only when the chipmem is fast, i.e. when the beam is off the bitplanes (as proposed by
SP on Amycoders many years ago).
My first tests went really well and I had program counters modified and alternating colour 0 on screen in no time. But when I started to do implement context loading and storing in a reusable way, and inserted c2p, I kind of lost track.
Maybe some of you have implemented framesync c2p on 68060 and could give me some tips?
So far I have saved/restored: D0-A6, USP, SR, PC
It seems like I need to modify the CACR to invalidate the branch caches on 68060, but I am not sure I am doing it correctly.