This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mips _flush_cache


DJ Delorie wrote:
> 
> 
> GCC unconditionally expects the OS to have _flush_cache() equivalent
> for trampolines to work, but has no provisions for cases where there
> is no _flush_cache() available.

Remember that what the OS doesn't provide, you often can add in
lib1funcs.asm .
Cache is usually most efficiently flushed by telling the cache controller
to do so, but if you don't have access to the controller, with some
knowledge of the cache architecture you can write code that causes the
to-be-flushed cacheline to be evicted due to cache collisions.

-- 
Joern Rennecke                  |            gcc expert for hire
amylaar@onetel.net.uk           |  send enquiries to: jwr_jobs@onetel.net.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]