Received: from [140.186.70.92] (port=45111 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrCxy-0001F6-8X for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:21:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrCxv-0006AN-7X for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:21:02 -0500 Received: from adelie.canonical.com ([91.189.90.139]:35502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrCxv-00069s-1R for qemu-devel@nongnu.org; Sun, 20 Feb 2011 12:20:59 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PrCxt-0002iP-HZ for ; Sun, 20 Feb 2011 17:20:57 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E5A0F2EA026 for ; Sun, 20 Feb 2011 17:20:56 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 20 Feb 2011 17:14:03 -0000 From: Aurelien Jarno Sender: bounces@canonical.com References: <20100711040906.24289.42006.malonedeb@palladium.canonical.com> Message-Id: <20110220171405.28191.15245.launchpad@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 604166] Re: QEMU Floating Point Exception and Crash while Emulating "Cirrus Logic 5446 PCI" in Win98 Reply-To: Bug 604166 <604166@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Status: Fix Committed =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/604166 Title: QEMU Floating Point Exception and Crash while Emulating "Cirrus Logic 5446 PCI" in Win98 Status in QEMU: Fix Released Bug description: My build of QEMU i386-softmmu crashes with a "floating point exception" upon Win98SE startup when "Cirrus Logic 5446 PCI" display adapter properties are set above 16 colors and/or 640 x 480". = My Setup: I've been working to configure Windows 98 SE for video games in QEMU (initially Grim Fandango and Masters of Orion 2, later Planescape Torment and others) on a Mac OS X 10.6.4 host (gcc version 4.2.1). I have reproduced this bug when building from both 0.12.50-trunk and 0.12.4-stable. My builds and installation are standard except that they use the more recent SeaBIOS-6.0 binary as $PREFIX/share/qemu/seabios.bin in order to work around the issue described in Bug #521994. These are my current startup parameters: > #! /bin/bash - > = > GUESTNAME=3Dwin98-base.qemu > VMHOME=3D/vol/$GUESTNAME > RAMSIZE=3D512 > #DRIVES=3D"$DRIVES -drive file=3D$VMHOME/fs/fda,if=3Dfloppy" > DRIVES=3D"$DRIVES -drive file=3D$VMHOME/fs/hdd.qcow2,if=3Dide,media=3D= disk" > #DRIVES=3D"$DRIVES -drive file=3D$VMHOME/ssw/win98se-oem.iso,if=3Dide,= media=3Dcdrom" > BOOTDISK=3Dc > = > qemu\ > -M pc -cpu pentium3 -m $RAMSIZE\ > -vga cirrus -soundhw pcspk,es1370 -net nic,model=3Dne2k_pci\ > -localtime\ > -monitor stdio\ > -name $GUESTNAME\ > -boot $BOOTDISK\ > $DRIVES = The State of QEMU/Win98 Emulation: The initial Windows 98 installation does not properly detect most PCI devices (ie. es1370, ne2k_pci). There is a solution to this involving a manual reinstallation of the device named "Plug and Play Bios (fail safe)" with the win98 "PCI Bus" driver, as described here . This process reveals many previously undetected devices and is currently necessary for win98 sound and networking support. Unlike sound and network support, advanced graphics support is available without the PCI Bus workaround via a display adapter identified as "Cirrus Logic" in Device Manager. **This "Cirrus Logic" adapter does support higher resolutions and color depth, but does not work properly in some applications.** For instance, when running the intro to Grim Fandango, many colors are shown incorrectly and the system slows and freezes. One of the devices revealed and installed after the PCI Bus workaround is the "Cirrus Logic 5446 PCI" display adapter, and I had hoped that configuring this device might solve these problems. = The Bug: Device Manager lists "Cirrus Logic 5446 PCI" alongside the previously discovered "Cirrus Logic" device, but due to resource conflicts, "Cirrus Logic 5446 PCI" is effectively disabled until "Cirrus Logic" is either disabled or uninstalled. Unfortunately, disabling "Cirrus Logic" and using "Cirrus Logic 5446 PCI" only makes things worse, for using any display settings higher than 16 colors and 640x480 will always cause a floating point exception on startup. This crash occurs after the login prompt and during the Windows 98 startup chime. I hope that someone will be able to make sense of all of this. Until then, D. Johnston