MPC8260 cache patch

Patrick Doyle wpd@delcomsys.com
Mon Mar 24 20:00:00 GMT 2003


This one is probably for you, Gary.

I ran into a problem wherein the data cache was not being properly synced
prior to being invalidated (somewhere in one of the FLASH routines --
'flash_dev_query()', to be a little more precise).  I tracked it down to the
fact that the 'HAL_DCACHE_SYNC()' macro syncs the cache to memory by loading
in the first 16 kBytes.  But, if there are dirty cache lines in those first
16 kBytes, they do not get written back out to main memory.  My simple fix
is to double the region scanned from 16 kBytes to 32 kBytes.  I would be
glad to accept an alternative solution.

Also, since Paul's ChangeLog entry says that he stole this from the PPC 60x
HAL, you might want to consider changing that HAL (and perhaps others -- is
this a good time to mention that I HATE CUTTING AND PASTING CODE!!!) as
well.

--wpd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cache2.txt
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20030324/984dea5d/attachment.txt>


More information about the Ecos-patches mailing list