Received: from [140.186.70.92] (port=59715 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFkeS-0008SG-S9 for qemu-devel@nongnu.org; Tue, 09 Nov 2010 04:38:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFkXS-0000WH-Ql for qemu-devel@nongnu.org; Tue, 09 Nov 2010 04:32:04 -0500 Received: from adelie.canonical.com ([91.189.90.139]:39756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFkXS-0000Vc-F6 for qemu-devel@nongnu.org; Tue, 09 Nov 2010 04:30:50 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PFkXQ-0002wu-JT for ; Tue, 09 Nov 2010 09:30:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D2B732E808E for ; Tue, 9 Nov 2010 09:30:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Nov 2010 09:24:41 -0000 From: Michael Roitzsch Sender: bounces@canonical.com References: <20101109090530.8672.92975.malonedeb@soybean.canonical.com> Message-Id: <20101109092441.8825.58639.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 672934] Re: FPU incorrect on Mac OS X Reply-To: Bug 672934 <672934@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Patch added: "patch which fixes problem on the Mac" https://bugs.launchpad.net/qemu/+bug/672934/+attachment/1727687/+files/f= pu-mac.patch -- = FPU incorrect on Mac OS X https://bugs.launchpad.net/bugs/672934 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I am using the 0.13.0 release version of QEMU on Mac OS X 10.6.4. I work fo= r a university and the affected guest OS is our own research OS. I believe = I found a bug in QEMU's FPU emulation, which only triggers on the Mac. You = can reproduce the problem by booting the attached ISO image. Investigating the problem, I found that the lua interpreter in our loader c= omponent (called "ned") internally uses doubles to represent all lua-number= s. These doubles are showing completely wrong values on QEMU/Mac, resulting= in the lua code not processing properly. I also attached a patch which fixes the problem for me. The attached ZIP-fi= le also contains "before" and "after" screenshots. Note that booting the IS= O on a real machine or on a Linux-QEMU always shows the correct "after" beh= avior. Only QEMU on the Mac exhibits the wrong "before" behavior without my= patch. The patch might break other systems setting the CONFIG_BSD flag, so= maybe the preprocessor should check for __APPLE__ instead to make the fix = Mac-only.