qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] QEMU TCG code does not build with OpenBSD PowerPC


From: malc
Subject: Re: [Qemu-devel] QEMU TCG code does not build with OpenBSD PowerPC
Date: Sat, 11 Apr 2009 10:58:06 +0400 (MSD)

On Fri, 10 Apr 2009, Brad wrote:

> Trying to build on an OpenBSD PowerPC machine dies pretty quickly
> in the TCG PowerPC code..
> 
>    CC    i386-softmmu/exec.o
>  In file included from /usr/obj/ports/qemu-0.10.2/qemu-0.10.2/tcg/tcg.h:24,
>                   from /usr/obj/ports/qemu-0.10.2/qemu-0.10.2/exec.c:39:
>  /usr/obj/ports/qemu-0.10.2/qemu-0.10.2/tcg/ppc/tcg-target.h:76:2: #error 
> Unsupported system
>  gmake[1]: *** [exec.o] Error 1
> 
> Any help with this?

You need to know which ABI OpenBSD/PPC uses. A shot in the dark would be
to try something like:

diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h
index 5faf730..cd851a2 100644
--- a/tcg/ppc/tcg-target.h
+++ b/tcg/ppc/tcg-target.h
@@ -69,7 +69,7 @@ enum {
 #define TCG_TARGET_CALL_STACK_OFFSET 24
 #elif defined _AIX
 #define TCG_TARGET_CALL_STACK_OFFSET 52
-#elif defined __linux__
+#elif defined __linux__ || defined __OpenBSD__
 #define TCG_TARGET_CALL_ALIGN_ARGS 1
 #define TCG_TARGET_CALL_STACK_OFFSET 8
 #else


And similar changes in tcg-target.c..

-- 
mailto:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]