On 10/05/2011 05:32 AM, Michel JAOUEN wrote:

Hello,

Below , you find the answer to your question :

    * Is the address supposed to point to the base PL310 address?  Yes
      , you have to provide the physical address of PL310.
    * Why do you call this operation if the target status is unknown?

ðAfter target creation and smp initialization, this operation need to be done only once.

ðBy doing it with target in unknow state, It is not performed several time, if operation is done several time, only 1^st call is taken into account.

    * What does this operation do when called?

ðThis operation is initializing the l2 cache handler with external cache PL310.

(without this initialization cache l2 is not supported)

ðThe number of way is provided as parameter, auto detection is not implemented yet.

ðThe effect of this call is seen later on :

-1- while reading phys memory through dap apsel 1: a flush of the cache L1 from the cortex A9s and then a flush of unified cache L2 will be done. This will allow to read a consistent physical memory.

-2- cortex_a8 cache_info : shows the cache L1 and L2 info

Best Regards

Michel JAOUEN

Michel,

Thanks for the explanation, that helped a bunch. With this work then using apsel 1 will guarantee consistent memory.

If I write through apsel 0 will the L2 and L1 cache lines also be invalidated?

Thanks again,
Karl
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to