I see that the MVC instruction is used to write to the CSR register. I could not find a CSL routine to enable the cache. Is writing some assembly (i.e. using MVC) the only way to enable the cache?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I see that the MVC instruction is used to write to the CSR register. I could not find a CSL routine to enable the cache. Is writing some assembly (i.e. using MVC) the only way to enable the cache?
You can turn on the cache like this:
extern far cregister volatile unsigned int CSR;
CSR = (CSR & ~0xE0) | 0x40; // set CSR[7:5] = 010b