commit | 39b83981594d2e49a83e4aaedcab8395c01ddd03 | [log] [tgz] |
---|---|---|
author | Tommi Rantala <tt.rantala@gmail.com> | Sat Aug 11 16:02:33 2012 +0300 |
committer | Tommi Rantala <tt.rantala@gmail.com> | Tue Aug 21 22:33:56 2012 +0300 |
tree | a1fadf9191a3e25cca2d8e00e7e36f072e5d890a | |
parent | 5fedf3407c7c161d12ba4f600cbce12fef780ad7 [diff] |
Flush icache with __builtin___clear_cache() in tests when compiling with GCC When compiling with GCC, use the builtin instruction cache flushing mechanism in all tests where it is needed. Quoting GCC docs: ''If the target does not require instruction cache flushes, __builtin___clear_cache has no effect. Otherwise either instructions are emitted in-line to clear the instruction cache or a call to the __clear_cache function in libgcc is made.''.