Received: from [140.186.70.92] (port=57173 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXnwu-0007Kg-2q for qemu-devel@nongnu.org; Sun, 11 Jul 2010 00:15:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXnws-0007Er-H2 for qemu-devel@nongnu.org; Sun, 11 Jul 2010 00:15:27 -0400 Received: from adelie.canonical.com ([91.189.90.139]:51942) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXnws-0007Ek-AM for qemu-devel@nongnu.org; Sun, 11 Jul 2010 00:15:26 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1OXnwr-0007yf-3Q for ; Sun, 11 Jul 2010 05:15:25 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 1423B2E8056 for ; Sun, 11 Jul 2010 05:15:25 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 11 Jul 2010 04:09:06 -0000 From: David Johnston <604166@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100711040906.24289.42006.malonedeb@palladium.canonical.com> Message-Id: <20100711040906.24289.42006.malonedeb@palladium.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 604166] [NEW] 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 Public bug reported: 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=3Ddi= sk" > #DRIVES=3D"$DRIVES -drive file=3D$VMHOME/ssw/win98se-oem.iso,if=3Dide,me= dia=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 ** Affects: qemu Importance: Undecided Status: New -- = QEMU Floating Point Exception and Crash while Emulating "Cirrus Logic 5446 = PCI" in Win98 https://bugs.launchpad.net/bugs/604166 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: My build of QEMU i386-softmmu crashes with a "floating point exception" upo= n Win98SE startup when "Cirrus Logic 5446 PCI" display adapter properties a= re 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 (initi= ally Grim Fandango and Masters of Orion 2, later Planescape Torment and oth= ers) 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=3Ddi= sk" > #DRIVES=3D"$DRIVES -drive file=3D$VMHOME/ssw/win98se-oem.iso,if=3Dide,me= dia=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 devic= es (ie. es1370, ne2k_pci). There is a solution to this involving a manual r= einstallation 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 de= vices and is currently necessary for win98 sound and networking support. Unlike sound and network support, advanced graphics support is available wi= thout the PCI Bus workaround via a display adapter identified as "Cirrus Lo= gic" in Device Manager. **This "Cirrus Logic" adapter does support higher r= esolutions 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 reve= aled and installed after the PCI Bus workaround is the "Cirrus Logic 5446 P= CI" display adapter, and I had hoped that configuring this device might sol= ve these problems. The Bug: Device Manager lists "Cirrus Logic 5446 PCI" alongside the previously disco= vered "Cirrus Logic" device, but due to resource conflicts, "Cirrus Logic 5= 446 PCI" is effectively disabled until "Cirrus Logic" is either disabled or= uninstalled. Unfortunately, disabling "Cirrus Logic" and using "Cirrus Log= ic 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 9= 8 startup chime. I hope that someone will be able to make sense of all of this. Until then, D. Johnston