diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-04-20 18:30:21 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-04-20 18:33:33 +0100 |
commit | fa54abb8c298f892639ffc4bc2f61448ac3be4a1 (patch) | |
tree | 8d4a8bcac95b2eda09cb78caf197c9913aaafd26 /tcg/arm | |
parent | da92ada855036c55bd08b0b0c64c7551d56f3586 (diff) | |
download | qemu-fa54abb8c298f892639ffc4bc2f61448ac3be4a1.zip |
Drop QEMU_GNUC_PREREQ() checks for gcc older than 4.1
We already require gcc 4.1 or newer (for the atomic
support), so the fallback codepaths for older gcc
versions than that are now dead code and we can
just delete them.
NB: clang reports itself as gcc 4.2 (regardless of
clang version), so clang won't be using the fallbacks
either.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tcg/arm')
-rw-r--r-- | tcg/arm/tcg-target.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 09a19c6f35..75ea247bc4 100644 --- a/tcg/arm/tcg-target.h +++ b/tcg/arm/tcg-target.h @@ -130,14 +130,7 @@ enum { static inline void flush_icache_range(uintptr_t start, uintptr_t stop) { -#if QEMU_GNUC_PREREQ(4, 1) __builtin___clear_cache((char *) start, (char *) stop); -#else - register uintptr_t _beg __asm("a1") = start; - register uintptr_t _end __asm("a2") = stop; - register uintptr_t _flg __asm("a3") = 0; - __asm __volatile__ ("swi 0x9f0002" : : "r" (_beg), "r" (_end), "r" (_flg)); -#endif } #endif |