summaryrefslogtreecommitdiff
path: root/emulators/qemu/patches/patch-en
blob: c1f71fb83378d19c2cbb5fdabfe2d508ce72f62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-en,v 1.1 2010/10/27 13:24:09 tsutsui Exp $

Use ligbcc builtin __clear_cache() declared in exec-all.h
instead of original __builtin___clear_cache() because
the latter one is not available in (at least) gcc 4.1.3.

--- tcg/arm/tcg-target.h.orig	2010-07-28 01:55:42.000000000 +0000
+++ tcg/arm/tcg-target.h
@@ -83,7 +83,7 @@ enum {
 static inline void flush_icache_range(unsigned long start, unsigned long stop)
 {
 #if QEMU_GNUC_PREREQ(4, 1)
-    __builtin___clear_cache((char *) start, (char *) stop);
+    __clear_cache((char *) start, (char *) stop); /* declared in exec-all.h */
 #else
     register unsigned long _beg __asm ("a1") = start;
     register unsigned long _end __asm ("a2") = stop;