[ECOS] Question on hal macro: HAL_DCACHE_INVALIDATE_ALL

Gary Thomas gary@mlbassoc.com
Thu May 6 01:26:00 GMT 2004


On Wed, 2004-05-05 at 16:50, John Newlin wrote:
> On architectures with writeback cache, should this do:
> 
> writeback + invalidate
> or simply
> invalidate

If you need the data in the cache to make it to memory, then you need
to flush (writeback).

One normally invalidates the cache when it is assumed that some other
agent has [or is about to] change memory that would make the contents
of the cache incorrect.  By invalidating the cache, new [read] accesses
will cause the contents to be refreshed from memory.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list