diff mbox

Help - `flush_icache_range' MacPPC

Message ID alpine.LNX.2.00.1202072200400.2929@linmac
State New
Headers show

Commit Message

malc Feb. 7, 2012, 6:03 p.m. UTC
On Tue, 7 Feb 2012, Maurizio Caloro wrote:

> Hello Together
> Here i drive with me MiniMac G4 1.4Ghz and i try to run Qemu 1.0. i wan't run one Virt. MS Server2008 it's this realistic?.
> 
> Unfortunitly from the first (other) Mailinglist i don't become any Answer.
> 
> on a possible error recovery support, I would grateful to you.
> Thanks and best regards
> Mauri
>  
> >NetBSD powermac.G4 5.1 NetBSD 5.1 (GENERIC) #0: Sat Nov  6 17:09:11 UTC >2010  builds@b7.netbsd.org:/home/builds/ab/netbsd-5-1->RELEASE/macppc/201011061943Z-obj/home/builds/ab/netbsd-5-1->RELEASE/src/sys/arch/macppc/compile/GENERIC macppc
> >
> ># gmake
> >  CC    i386-softmmu/memory.o
> >  LINK  i386-softmmu/qemu-system-i386
> >ld: warning: libintl.so.0, needed by /usr/pkg/lib/libgthread-2.0.so, may conflict with libintl.so.8
> >tcg/tcg.o: In function `tcg_prologue_init':
> >/usr/source/qemu-1.0/tcg/tcg.c:268: undefined reference to `flush_icache_range'
> >tcg/tcg.o: In function `ppc_tb_set_jmp_target':
> >/usr/source/qemu-1.0/tcg/ppc/tcg-target.c:1291: undefined reference to `flush_icache_range'
> >tcg/tcg.o: In function `tcg_gen_code':
> >/usr/source/qemu-1.0/tcg/tcg.c:2191: undefined reference to `flush_icache_range'
> >gmake[1]: *** [qemu-system-i386] Error 1
> >gmake: *** [subdir-i386-softmmu] Error 2

Does follwing fix it?
diff mbox

Patch

diff --git a/cache-utils.c b/cache-utils.c
index 2db5af2..362c98e 100644
--- a/cache-utils.c
+++ b/cache-utils.c
@@ -57,7 +57,7 @@  static void ppc_init_cacheline_sizes(void)
 }
 #endif
 
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__)
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>