From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bxqgt-0004O3-6O for qemu-devel@nongnu.org; Thu, 19 Aug 2004 13:27:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bxqgp-0004KA-2e for qemu-devel@nongnu.org; Thu, 19 Aug 2004 13:27:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bxqgo-0004K3-W9 for qemu-devel@nongnu.org; Thu, 19 Aug 2004 13:27:03 -0400 Received: from [143.106.24.50] (helo=tux06.ltc.ic.unicamp.br) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BxqcC-0007u0-T5 for qemu-devel@nongnu.org; Thu, 19 Aug 2004 13:22:17 -0400 Date: Thu, 19 Aug 2004 12:15:45 -0300 From: Glauber de Oliveira Costa Message-ID: <20040819151545.GA12582@br.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline Subject: [Qemu-devel] powerpc compilation Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello friends I got some errors while compiling qemu to emulate i386 in a powerpc. (user space only) The patch I am appending correct this errors and qemu compiles I am building a very small environment, and so, I am only building 386 emulation. The configure options I used was --target-list=i386-user --disable-sdl Just FYI, the build happens with a lot (really a lot) of errors in a powerpc64. I think I'm abble to fix some of them, and will try to do it in a near future. Please CC me, as I am not subscribed Thanks, glauber -- ================================= Glauber de Oliveira Costa Linux Technology Center - Brazil gocosta@br.ibm.com ================================= --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch-ppc-compile diff -ur qemu-0.6.0-orig/cpu-exec.c qemu-0.6.0/cpu-exec.c --- qemu-0.6.0-orig/cpu-exec.c 2004-08-19 10:01:45.080895784 -0400 +++ qemu-0.6.0/cpu-exec.c 2004-08-19 10:01:34.672880432 -0400 @@ -903,7 +903,7 @@ # define TRAP_sig(context) EXCEPREG_sig(exception, context) /* number of powerpc exception taken */ #endif /* __APPLE__ */ -int cpu_signal_handler(int host_signum, siginfo *info, +int cpu_signal_handler(int host_signum, struct siginfo *info, void *puc) { struct ucontext *uc = puc; Only in qemu-0.6.0: .cvsignore Only in qemu-0.6.0/linux-user: .path.c.swp diff -ur qemu-0.6.0-orig/linux-user/syscall.c qemu-0.6.0/linux-user/syscall.c --- qemu-0.6.0-orig/linux-user/syscall.c 2004-08-19 10:01:48.047976952 -0400 +++ qemu-0.6.0/linux-user/syscall.c 2004-08-19 10:06:19.116904536 -0400 @@ -577,7 +577,9 @@ case SO_OOBINLINE: case SO_NO_CHECK: case SO_PRIORITY: +#ifdef HAVE_SO_BSDCOMPAT case SO_BSDCOMPAT: +#endif case SO_PASSCRED: case SO_TIMESTAMP: case SO_RCVLOWAT: --VS++wcV0S1rZb1Fb--