[PATCH ARM] Make INITIALIZE_TRAMPOLINE always sync caches
Richard Earnshaw
Richard.Earnshaw@buzzard.freeserve.co.uk
Fri May 13 22:01:00 GMT 2005
This patch fixes a regression on arm-netbsdelf with trampolines.
Having thought about it for a while, I've concluded that the benefits of
avoiding the cache flush in a few environments are outweighed by the
penalties for those where not doing it is fatal.
For example in a cross environment we can't be sure how to do the cache
clean so the compiler does not define CLEAR_INSN_CACHE. However, by
calling __cache_flush anyway it is possible for the user to override the
default library call with one that does work. If the call isn't made then
they are stuck.
Tested on arm-netbsdelf, fixes several regressions.
2005-05-13 Richard Earnshaw <richard.earnshaw@arm.com>
* arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
unconditional.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tramp.patch
Type: text/x-patch
Size: 1527 bytes
Desc: tramp.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050513/04f89cf6/attachment.bin>
More information about the Gcc-patches
mailing list