| View previous topic :: View next topic |
| Author |
Message |
theHobbit
Joined: 30 Sep 2006 Posts: 65
|
Posted: Wed Dec 23, 2009 11:19 am Post subject: [QUESTION] How to flush instruction cache? |
|
|
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. |
|
| Back to top |
|
 |
psPea
Joined: 01 Sep 2007 Posts: 64
|
Posted: Wed Dec 23, 2009 11:41 am Post subject: |
|
|
sceKernelIcacheInvalidateAll()
it requires kernel mode i believe _________________ Click ME! |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Wed Dec 23, 2009 7:48 pm Post subject: |
|
|
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. _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
theHobbit
Joined: 30 Sep 2006 Posts: 65
|
Posted: Thu Dec 24, 2009 12:59 am Post subject: |
|
|
| Thanks for your answers, i will test those :). |
|
| Back to top |
|
 |
hlide
Joined: 10 Sep 2006 Posts: 750
|
Posted: Thu Dec 24, 2009 10:36 pm Post subject: |
|
|
| sheeh, another guy trying to port it... a port of a port of a port... dude, it's like redoing ps1p or psxp... |
|
| Back to top |
|
 |
|