cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Anonymous
Not applicable
2,514 Views

Microblaze: Do we really need to Invalidate the Caches before Enabling?

Hi,

 

As part of our cache routine we execute the following:

 

microblaze_disable_icache();
microblaze_invalidate_icache();
microblaze_enable_icache ();

microblaze_disable_dcache();
microblaze_invalidate_dcache();
microblaze_enable_dcache ();

 

Invalidating the caches takes a long time (2-3 seconds) on our given architecture.

 

I am wondering if we really need to Invalidate the caches before enabling?.  Would the cache tags already be invalidated as part of the power-on-reset of the MB?

 

Any Advice?

 

Thanks

Lachlan.

 

 

 

 

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
2,505 Views
Registered: ‎08-06-2007

Re: Microblaze: Do we really need to Invalidate the Caches before Enabling?

Hi,

 

After a FPGA configuration so is the cache tags invalidated.

However if you do a normal reset so will the cache tags not be invalidated and thus needing invalidation.

 

Göran

0 Kudos