Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19l7Uf-00072S-Q1 for qemu-devel@nongnu.org; Fri, 08 Aug 2003 09:41:21 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19l7U7-0006ws-Ho for qemu-devel@nongnu.org; Fri, 08 Aug 2003 09:41:18 -0400 Received: from [66.33.209.15] (helo=smaug.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19l7Fq-0005Tc-Fg for qemu-devel@nongnu.org; Fri, 08 Aug 2003 09:26:02 -0400 Received: from _HOSTNAME_ (cs2417545-42.austin.rr.com [24.175.45.42]) by smaug.dreamhost.com (Postfix) with ESMTP id 18D685B788 for ; Fri, 8 Aug 2003 06:26:00 -0700 (PDT) From: "Jon Nall" Date: Fri, 8 Aug 2003 08:13:35 -0500 Subject: Re: [Qemu-devel] powerpc hang Message-ID: <20030808131334.GA6242@themountaingoats.net> References: <1060210228.10894.50.camel@lxws8.ad.newisys.com> <20030807220544.GA3657@themountaingoats.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20030807220544.GA3657@themountaingoats.net> Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, Aug 07, 2003 at 05:05:45PM -0500, Jon Nall wrote: > test-i386 -> runs with the 3 exceptions: the func_lret32 and func_iret32 > tests both die with a SIGSEGV. Also i get "Unsupported sysc= all: > 252" when the program exits. i'm looking into both of these. >=20 i've found a little more information: - Unsupported syscall: 252. grepping through kernel headers, it seems that i386, cris, and ppc64 are the only architectures that define a syscall for syscall 252 (__NR_exit_group) in linux 2.4. the 2.5 kernel seems to have most (all?) architectures supporting this syscall, although the actual number varies with architecture and syscall_defs.h should probably be updated with that information. - the SIGSEGV. this occurs because there are lots of uses of env->regs[R_ESP] in helper-i386.c. however, on ppc, ESP is $r17. adding: env->regs[R_ESP] =3D ESP; to the top of helper_ret_protected() allowed func_lret32 and func_iret32 to succeed. however, the env->regs[R_ESP] usage is strewn all over the code. =20 Question: is it safe to replace all of these with ESP since ESP should default to env->regs[R_ESP] if there is no AREG defined for the architecture? (or more generally, is it safe to replace env->regs[XXX] with XXX?) thanks! nall.