Help For Flushing Arm Caches


LDChen

Still Fresh
Joined
Feb 23, 2005
Messages
19
Hello everyone,
after a suggestion, I rewrote here my help request.

Into the dynamic recompiler of my emulator I need to flush the instruction cache and write back the data cache.
Infact, I must do it every time I recompile a block, otherwise I can get wrong results.
I wrote a small code for it; it runs fine on GeePee32 but I don't know if it works on the real hardware too.
I hope that somebody could test it, or give me some advices if I did it wrongly.
Thanks in advance.

Sincerely,

LDChen.
 
I put the .fxe in the gpmm folder and ran it, it says on the screen:
code1 result = 12
code2 result = 34

Is that what you wanted it to do?

Bourbon
 
Thanks a lot, it should be correct.
Expected results are 12 for the first and 34 for the second.

Sincerely,

LDChen.
 
Hello,
I tried to port it to Dreamcast some time ago.
Unfortunately, I stopped because I had no way to test my code on a decent Dreamcast emulator.
Things are completely different for ARM: BoycottAdvance and GeePee32 are still the best solutions for testing ARM assembly code (my personal opinion).
It's because their integrated debugger with the ability to see execution, test registers values and reading memory locations.
I also use the A620 for debugging, but GDB is really slow... while emulators are very fast!
Nowadays it looks like there is a good DC emulator out, but it doesn't have what I really need (see what I wrote previously).
However, something has been already written: I studied LibDream's sources, I searched for days the PowerVR datasheet (without success :( ), and I already know SH cpu, because I also used them at work.

Sincerely,

LDChen
 
integrated debugger with the ability to see execution, test registers values and reading memory locations

If this is what you want to do on the GP32, why not just use JTAG ? Much better than GeePee32 for debugging as you are stepping through the code on a live system, so no need to worry about things being emulated incorrectly.
 
Back
Top