Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgoWK-0008VU-Jf for qemu-devel@nongnu.org; Thu, 18 May 2006 15:50:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgoWJ-0008UE-Eo for qemu-devel@nongnu.org; Thu, 18 May 2006 15:50:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgoWJ-0008UB-9Y for qemu-devel@nongnu.org; Thu, 18 May 2006 15:50:51 -0400 Received: from [212.8.0.13] (helo=rosi.naasa.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FgoZS-0006uq-P0 for qemu-devel@nongnu.org; Thu, 18 May 2006 15:54:06 -0400 From: Joerg Platte Subject: Re: [Qemu-devel] fpu problems with qemu-system-sparc Date: Thu, 18 May 2006 21:50:43 +0200 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Message-Id: <200605182150.44088.lists@naasa.net> Content-Transfer-Encoding: quoted-printable Reply-To: jplatte@naasa.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Am Donnerstag, 18. Mai 2006 19:53 schrieb Blue Swirl: > >I've checked a lot of the executed instructions in qemu and cannot fin= d > > any problems up to now. Does somebody else has an idea what to check?= The > > test program simply adds two float variables (fadds-instruction) in a > > loop and this crashes the program reproducible. > > Some instructions trap when FPU is disabled, and they shouldn't, like > stfsr? I don't think so. I analyzed the core-file after the crash. Sometimes the= user=20 stack was corrupt or a register value invalid and the crashing instructio= n=20 was not a FPU instruction. Hence, I think one simulated instruction someh= ow=20 overwrites parts of the userstack or maybe the kernel itself does it beca= use=20 of a wrong behavior of the simulated hardware.=20 I'm not sure where to add more debugging output, because in qemu a segfau= lt is=20 hard to detect and in the kernel I have no idea, if all executed instruct= ions=20 are correctly translated... And unfortunately this crash is reproducible,= but=20 timing dependent. It does not always happen at exact the same position an= d=20 therefore, I can't check, for example, for an invalid register value to s= ee,=20 when it is loaded... regards, J=F6rg