From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6p57-00081F-0W for qemu-devel@nongnu.org; Thu, 03 Mar 2005 07:05:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D6p53-0007zd-3X for qemu-devel@nongnu.org; Thu, 03 Mar 2005 07:05:25 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6p52-0007yu-Rr for qemu-devel@nongnu.org; Thu, 03 Mar 2005 07:05:24 -0500 Received: from [62.210.158.46] (helo=teheran.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D6oq0-00074e-Sr for qemu-devel@nongnu.org; Thu, 03 Mar 2005 06:49:53 -0500 Subject: Re: [Qemu-devel] More PPC emulation fixes From: "J. Mayer" In-Reply-To: <1109804693.13299.9584.camel@rapid> References: <1109804693.13299.9584.camel@rapid> Content-Type: multipart/mixed; boundary="=-dV172O4JNpViJp42JHYu" Message-Id: <1109850591.13299.9614.camel@rapid> Mime-Version: 1.0 Date: Thu, 03 Mar 2005 12:49:51 +0100 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-dV172O4JNpViJp42JHYu Content-Type: text/plain Content-Transfer-Encoding: 7bit On Thu, 2005-03-03 at 00:04, J. Mayer wrote: > Here's a new patch that fixes the last (!) bug in PPC fixed point > operations and most FPU bugs. > Apply and enjoy. I realise I missed one "detail": FPU has to be activated in OHW, or it would crash. I'll send a modified version 0.3 tonight. For those who don't want to wait, here's the needed patch. -- J. Mayer Never organized --=-dV172O4JNpViJp42JHYu Content-Disposition: attachment; filename=FPU.diff Content-Type: text/x-patch; name=FPU.diff; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Index: src/vectors.S =================================================================== --- src/vectors.S (revision 90) +++ src/vectors.S (working copy) @@ -73,6 +73,8 @@ stwu r14, 4(r13) ; bdnz _bios_copy_loop ; /* Synchronize the whole execution context */ + /* Also enable FPU */ + ori r0, r0, (1 << 13) ; mtspr 26, r29 ; mtspr 27, r0 ; rfi ; --=-dV172O4JNpViJp42JHYu--