qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] powerpc (debian/sid) woes


From: Jocelyn Mayer
Subject: Re: [Qemu-devel] powerpc (debian/sid) woes
Date: 30 Jul 2003 16:27:33 +0200

On Tue, 2003-07-29 at 23:33, Jocelyn Mayer wrote:
> On Tue, 2003-07-29 at 22:57, Fabrice Bellard wrote:
> > The problem is that I don't have access to a gcc-3.3 powerpc based system...
> > 
> > Fabrice.
> > 
> <...snip...>
> 
> I got one with gcc 3.2.
> I'll make some tries when I have an up-to-date qemu-x86 repository.
> With the version I have today (about one week aged CVS co),
> I have no probleme.
> The kernel is 2.4.21-rc7, I must also check the glibc version.
> I compiled today an up-to-date CVS qemu for PPC target,
> so syscall.c did compile, with a 2.6.0-test1 kernel.
> 
> I may also try to update my compiler to gcc-3.3, if I'm not too lazy :=)

I compiled a fresh gcc 3.3 tonight.
I've been able to build all qemu emulator targets,
after a cvs update with no problems.
My config is now:
kernel 2.6.0-test1
glibc 2.2.5
gcc 3.3
binutils 1.13

I also compiled on a PC at the same time.
The only problem I had was the compilation of signal.c in debug mode
on the PC (kernel 2.4.21-pre7, glibc 2.2.5,gcc 2.95.3, binutils 2.13)
I had to use this patch:

Index: signal.c
===================================================================
RCS file: /cvsroot/qemu/qemu/signal.c,v
retrieving revision 1.17
diff -u -d -w -B -b -d -p -r1.17 signal.c
--- signal.c    13 Jul 2003 17:33:54 -0000      1.17
+++ signal.c    30 Jul 2003 14:22:13 -0000
@@ -378,16 +378,16 @@ static void dump_regs(struct ucontext *u
             "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n"
             "ESI=%08x EDI=%08x EBP=%08x ESP=%08x\n"
             "EFL=%08x EIP=%08x\n",
-            uc->uc_mcontext.gregs[EAX],
-            uc->uc_mcontext.gregs[EBX],
-            uc->uc_mcontext.gregs[ECX],
-            uc->uc_mcontext.gregs[EDX],
-            uc->uc_mcontext.gregs[ESI],
-            uc->uc_mcontext.gregs[EDI],
-            uc->uc_mcontext.gregs[EBP],
-            uc->uc_mcontext.gregs[ESP],
-            uc->uc_mcontext.gregs[EFL],
-            uc->uc_mcontext.gregs[EIP]);
+            uc->uc_mcontext.gregs[REG_EAX],
+            uc->uc_mcontext.gregs[REG_EBX],
+            uc->uc_mcontext.gregs[REG_ECX],
+            uc->uc_mcontext.gregs[REG_EDX],
+            uc->uc_mcontext.gregs[REG_ESI],
+            uc->uc_mcontext.gregs[REG_EDI],
+            uc->uc_mcontext.gregs[REG_EBP],
+            uc->uc_mcontext.gregs[REG_ESP],
+            uc->uc_mcontext.gregs[REG_EFL],
+            uc->uc_mcontext.gregs[REG_EIP]);
 }
 #else
 static void dump_regs(struct ucontext *uc)

Regards.

-- 
Jocelyn Mayer <address@hidden>





reply via email to

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