From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMg6R-0001e0-HC for qemu-devel@nongnu.org; Mon, 11 Sep 2006 03:21:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMg6O-0001cm-TD for qemu-devel@nongnu.org; Mon, 11 Sep 2006 03:21:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMg6O-0001cP-OL for qemu-devel@nongnu.org; Mon, 11 Sep 2006 03:21:08 -0400 Received: from [213.146.154.40] (helo=pentafluge.infradead.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GMg7c-0005AX-9e for qemu-devel@nongnu.org; Mon, 11 Sep 2006 03:22:24 -0400 Received: from pmac.infradead.org ([81.187.2.168]) by pentafluge.infradead.org with esmtpsa (Exim 4.62 #1 (Red Hat Linux)) id 1GMg4u-0005jc-DI for qemu-devel@nongnu.org; Mon, 11 Sep 2006 08:19:36 +0100 From: David Woodhouse Content-Type: text/plain Date: Mon, 11 Sep 2006 08:19:15 +0100 Message-Id: <1157959155.2977.189.camel@pmac.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Fix SPARC target build on Linux/PPC 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 The soft-float bits don't build on PPC. Patch from Matthias Saou diff -Naupr qemu-0.8.2.orig/target-sparc/op_helper.c qemu-0.8.2/target-sparc/op_helper.c --- qemu-0.8.2.orig/target-sparc/op_helper.c 2006-07-22 19:23:34.000000000 +0200 +++ qemu-0.8.2/target-sparc/op_helper.c 2006-08-24 10:58:30.000000000 +0200 @@ -12,12 +12,12 @@ void raise_exception(int tt) #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 -- dwmw2