Hello,
We are evaluating the AM335x processor with a beaglebone board and the starterware package, one strange thing we just observed is, the performance seems same with cache/mmu ON and OFF, which makes no sense to us, could anybody here can help?
Our test is quite straight forward, the demo application in starterware package enable MMU and I-Cache already, we insert in a simple evaulation function call to access(RW) the DDR with different cache hit ratio (e.g. 100% hit, 50% hit, 0% hit), and measure the duration of this function's execution. We have tested both cache/MMU ON and OFF case, but the puzzle thing is we saw similar performance duration. We also double checked the 'System Control Register' and 'Auxiliary Control Register' and TLB content to make sure the cache/MMU is ON/OFF correctly as we configured.
We just touched 2 lines of code for cache/MMU ON & OFF:
Cache ON:
MMUConfigAndEnable();
CacheEnable(CACHE_ALL); //here we enable both I-Cache and D-Cache
Cache OFF:
CacheDisable(CACHE_ALL); //here we disable both I-Cache and D-Cache
Thanks,
James.