From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19hrva-00067t-VC for qemu-devel@nongnu.org; Wed, 30 Jul 2003 10:27:42 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19hrvN-0005re-7Y for qemu-devel@nongnu.org; Wed, 30 Jul 2003 10:27:30 -0400 Received: from moscou.magic.fr ([62.210.158.41]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hruv-0005WX-OR for qemu-devel@nongnu.org; Wed, 30 Jul 2003 10:27:01 -0400 Received: from jma1.dev.netgem.com (gw.netgem.com [195.68.2.34]) by moscou.magic.fr (8.11.6/8.10.1) with ESMTP id h6UEQvh08991 for ; Wed, 30 Jul 2003 16:26:57 +0200 (CEST) Subject: Re: [Qemu-devel] powerpc (debian/sid) woes From: Jocelyn Mayer In-Reply-To: <1059514392.1750.805.camel@jma1.dev.netgem.com> References: <3F258305.3000303@petig-baender.de> <3F26DFAA.2000508@free.fr> <1059514392.1750.805.camel@jma1.dev.netgem.com> Content-Type: text/plain Message-Id: <1059575253.1749.817.camel@jma1.dev.netgem.com> Mime-Version: 1.0 Date: 30 Jul 2003 16:27:33 +0200 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu mailing list 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