From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8XZC-0006Q7-O7 for qemu-devel@nongnu.org; Thu, 03 Aug 2006 03:24:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8XZB-0006PR-6a for qemu-devel@nongnu.org; Thu, 03 Aug 2006 03:24:25 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8XZB-0006PL-2t for qemu-devel@nongnu.org; Thu, 03 Aug 2006 03:24:25 -0400 Received: from [193.229.0.41] (helo=fep01-app.kolumbus.fi) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8XcS-0008NS-Kw for qemu-devel@nongnu.org; Thu, 03 Aug 2006 03:27:49 -0400 Received: from [10.0.0.4] (really [88.112.234.76]) by fep01-app.kolumbus.fi with ESMTP id <20060803072421.IWVJ10406.fep01-app.kolumbus.fi@[10.0.0.4]> for ; Thu, 3 Aug 2006 10:24:21 +0300 Message-ID: <44D1A4A5.7050907@cs.helsinki.fi> Date: Thu, 03 Aug 2006 10:24:21 +0300 From: Heikki Lindholm MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040406010502010106040802" Subject: [Qemu-devel] [PATCH] target-sparc fpu fix 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 This is a multi-part message in MIME format. --------------040406010502010106040802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sparc target does not build on powerpc anymore. Not quite sure if the following patch is correct, but it fixes the problem. -- Heikki Lindholm --------------040406010502010106040802 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="qemu-sparcfpu.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="qemu-sparcfpu.patch" --- target-sparc/op_helper.c.old 2006-08-03 10:10:16.000000000 +0300 +++ target-sparc/op_helper.c 2006-08-03 09:45:14.000000000 +0300 @@ -12,12 +12,12 @@ #ifdef USE_INT_TO_FLOAT_HELPERS void do_fitos(void) { - FT0 = int32_to_float32(*((int32_t *)&FT1)); + FT0 = int32_to_float32(*((int32_t *)&FT1), &env->fp_status); } void do_fitod(void) { - DT0 = int32_to_float64(*((int32_t *)&FT1)); + DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status); } #endif --------------040406010502010106040802--