Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BwOy8-0006Rh-SJ for qemu-devel@nongnu.org; Sun, 15 Aug 2004 13:38:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BwOy7-0006RA-1F for qemu-devel@nongnu.org; Sun, 15 Aug 2004 13:38:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BwOy6-0006Qt-TJ for qemu-devel@nongnu.org; Sun, 15 Aug 2004 13:38:54 -0400 Received: from [64.4.35.10] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BwOtP-0003sd-5v for qemu-devel@nongnu.org; Sun, 15 Aug 2004 13:34:03 -0400 From: "Blue Swirl" Date: Sun, 15 Aug 2004 19:34:01 +0200 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: Subject: [Qemu-devel] Sparc mulscc Patch 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 I was right about the IU bug, now 2/3 is printf'ed as 0.6667 like it should. --- qemu-0.6.0.orig/target-sparc/op.c 2004-07-10 20:20:09.000000000 +0200 +++ qemu-0.6.0/target-sparc/op.c 2004-08-15 15:42:44.000000000 +0200 @@ -259,10 +358,10 @@ void OPPROTO op_mulscc_T1_T0(void) { - unsigned int b1, C, V, b2, src1; - C = FLAG_SET(PSR_CARRY); + unsigned int b1, N, V, b2, src1; + N = FLAG_SET(PSR_NEG); V = FLAG_SET(PSR_OVF); - b1 = C ^ V; + b1 = N ^ V; b2 = T0 & 1; T0 = (b1 << 31) | (T0 >> 1); if (!(env->y & 1)) _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail