Disabling cache using VLE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disabling cache using VLE

704 Views
stefanodimasci1
Contributor III

Hello everybody,

 

is it possible to disable the i-cache on the e200z4 usign VLE?

 

Thank you

Labels (1)
3 Replies

494 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Yes, it is possible. It does not matter whether BookE or VLE mode is being used. Cache memory can be disabled/enabled in both cases.

0 Kudos

494 Views
stefanodimasci1
Contributor III

Thank you, but the following inline code

asm("mtspr L1CSR1, %r31");

produce the following error:

Error: unsupported relocation against L1CSR1

and at this point I don't understand why

0 Kudos

494 Views
EAlepins
Contributor V

Is L1CSR1 defined? (i.e. ".equ") Otherwise, it will be considered as a symbol name and will produce the relocation error you mentioned. So, if L1CSR1 is not natively supported in your compiler, then add the following:

.equ   L1CSR1    1011

to declare the SPR number matching L1CSR1.