I am using a MCF5253 controller which is based on Coldfire Architecture. It has 8KB of Instruction Cache. Everything was working fine till I enabled it's Instruction Cache. Now what's happening is Adapter is getting reset randomly. When I debug it, It resets due to exception of "Illegal Instruction", No such exception comes if I run by disabling the Instruction Cache.
Is it necessary that periodically one should clear the cache? and if it is then at what frequency.
Another thing I would like to know is how can I calculate Cache Hit/Miss Ratio?
Thanks!