qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] powerpc compilation
@ 2004-08-19 15:15 Glauber de Oliveira Costa
  0 siblings, 0 replies; only message in thread
From: Glauber de Oliveira Costa @ 2004-08-19 15:15 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

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
=================================

[-- Attachment #2: patch-ppc-compile --]
[-- Type: text/plain, Size: 1074 bytes --]

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:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-19 17:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19 15:15 [Qemu-devel] powerpc compilation Glauber de Oliveira Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).