I was using 0.9.7 when testing this, so you can ignore my comment if the problem has already been fixed..
What I was trying to do was this:
Set up a two-way cache by writing 0x19 to the cache control register (0xFFFFFE92).
Copy some code/data to the explicitly cached region at 0xC0000000-0xC00007FF.
Run some code from that region.
When I ran my program in yabause it didn't work. I looked in the debugger and saw that the main SH2 was stuck on the stack somewhere (PC had some weird value like 0x06000952). But I thought my code was correct so I decided to try it out on my Saturn. Sure enough; it works just fine.
So it seems like yabause has a problem with executing explicitly cached code.
JSYK.. 😉
What I was trying to do was this:
Set up a two-way cache by writing 0x19 to the cache control register (0xFFFFFE92).
Copy some code/data to the explicitly cached region at 0xC0000000-0xC00007FF.
Run some code from that region.
When I ran my program in yabause it didn't work. I looked in the debugger and saw that the main SH2 was stuck on the stack somewhere (PC had some weird value like 0x06000952). But I thought my code was correct so I decided to try it out on my Saturn. Sure enough; it works just fine.
So it seems like yabause has a problem with executing explicitly cached code.
JSYK.. 😉