This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clean Whole Cache on Cortex-A9

I am doing some benchmarking and I need to clear the cache before each test. I have this example here:

Caches and Self-Modifying Code

However, I just want to clean the whole cache. Is there an easy way to do that? I do not need to know the start and end address of the functions.  I just want some simple code

Thanks.