qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 672934] [NEW] FPU incorrect on Mac OS X


From: Michael Roitzsch
Subject: [Qemu-devel] [Bug 672934] [NEW] FPU incorrect on Mac OS X
Date: Tue, 09 Nov 2010 09:05:29 -0000

Public bug reported:

I am using the 0.13.0 release version of QEMU on Mac OS X 10.6.4. I work
for 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 component (called "ned") internally uses doubles to represent all
lua-numbers. 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-file also contains "before" and "after" screenshots. Note that
booting the ISO on a real machine or on a Linux-QEMU always shows the
correct "after" behavior. 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.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
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 for 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 
component (called "ned") internally uses doubles to represent all lua-numbers. 
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-file 
also contains "before" and "after" screenshots. Note that booting the ISO on a 
real machine or on a Linux-QEMU always shows the correct "after" behavior. 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]