qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Glauber de Oliveira Costa <gocosta@br.ibm.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] powerpc compilation
Date: Thu, 19 Aug 2004 12:15:45 -0300	[thread overview]
Message-ID: <20040819151545.GA12582@br.ibm.com> (raw)

[-- 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:

                 reply	other threads:[~2004-08-19 17:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040819151545.GA12582@br.ibm.com \
    --to=gocosta@br.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).