View Single Post
Old 17 August 2014, 14:09   #35
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 42
Posts: 19,512
Quote:
Originally Posted by phx View Post
Yes. That's really difficult. And even if I make it execute in the cache, how do I determine and remember my result?
What about something like this:

Run PPC code that has as small loop as possible that takes at least 5+ seconds to finish, it must only modify CPU registers. After loop ends, save some status value ("loop done") to memory, exit.

After PPC code has been started, m68k CPU should near immediately clear REG_LOCK bit 0. Wait 10 seconds, set REG_LOCK bit 0. If PPC code finishes immediately, CPU was still executing, CPU was stopped if it does not finish immediately.

I expect it to be memory accesses blocking only, memory controller already needs to prevent simultaneous memory accesses from both CPUs.
Toni Wilen is offline  
 
Page generated in 0.04982 seconds with 9 queries