While working on https://reviews.llvm.org/D40900 (which now is effectively about
enabling compiler-rt on sparc in general, two tests were failing since __clear_cache
aborted. While libgcc's __clear_cache is just empty, this only happens because
gcc ( in gcc/config/sparc/sparc.c (sparc32_initialize_trampoline, sparc64_initialize_trampoline)
emits flush insns directly.
The following patch mimics that.
Tested on sparcv9-sun-solaris2.11. Ok for trunk?