Hi, i am trying to test the psx4all port for Dingoo on the PSP to learn about the mips recompiler it is using. But i found it uses the function cacheflush defined in sys/cachectl.h to flush the instruction cache, and it seems it isn´t available on the pspsdk. I found more about it here cacheflush
Is there an instruction to flush the instruction cache on the PSP?.
Thanks in advance.
[QUESTION] How to flush instruction cache?
Following the description of cacheflush, it would rather be
sceKernelDCacheInvalidateRange(*addr, size);
sceKernelICacheInvalidateRange(*addr, size);
or
sceKernelDCacheWritebackInvalidateRange(*addr, size);
sceKernelICacheWritebackInvalidateRange(*addr, size);
depending on need.
Write a wrapper function and and it should be ok.
sceKernelDCacheInvalidateRange(*addr, size);
sceKernelICacheInvalidateRange(*addr, size);
or
sceKernelDCacheWritebackInvalidateRange(*addr, size);
sceKernelICacheWritebackInvalidateRange(*addr, size);
depending on need.
Write a wrapper function and and it should be ok.
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl