From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FiFpv-00055b-Ck for qemu-devel@nongnu.org; Mon, 22 May 2006 15:13:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FiFps-00052o-Oh for qemu-devel@nongnu.org; Mon, 22 May 2006 15:13:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FiFps-00052V-Dh for qemu-devel@nongnu.org; Mon, 22 May 2006 15:13:00 -0400 Received: from [212.8.0.13] (helo=rosi.naasa.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FiFtv-00073F-8U for qemu-devel@nongnu.org; Mon, 22 May 2006 15:17:11 -0400 From: Joerg Platte Subject: Re: [Qemu-devel] fpu problems with qemu-system-sparc Date: Mon, 22 May 2006 21:12:51 +0200 References: <200605221951.56740.lists@naasa.net> In-Reply-To: <200605221951.56740.lists@naasa.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Message-Id: <200605222112.52455.lists@naasa.net> Content-Transfer-Encoding: quoted-printable Reply-To: jplatte@naasa.net, 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 Am Montag, 22. Mai 2006 19:51 schrieb Joerg Platte: > Am Freitag, 19. Mai 2006 21:14 schrieb Blue Swirl: Hi! > This re-execution of the same tb could explain my discovered behavior o= f > the FPU programs. A "save_state(dc);" call was missing before all invocations=20 of "gen_op_trap_ifnofpu();" in translate.c. Therefore, the whole tb inste= ad=20 of the interrupted instruction has been re-executed after a trap. This se= ems=20 to solve my FPU problems. I can provide a patch after I'm able to do a "c= vs=20 up"... regards, J=F6rg PS: Booting a normal SPARC-Image with init, hotplug, ... seems to work no= w=20 much better than before. There is no bash segfault any more: ARCH: SUN4M TYPE: SparcStation Ethernet address: 52:54:0:12:34:56 Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (jj@ultra.linux.cz). Patchin= g=20 kernel for srmmu[Fujitsu Swift]/iommu 63MB HIGHMEM available. Power off control detected. Built 1 zonelists Kernel command line: root=3D/dev/sda benchscript=3Dcrafty console=3DttyS0= =20 video=3Dtcxfb:off skipclock=3D1000 parallel=3D2 PID hash table entries: 1024 (order: 10, 16384 bytes) Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 253572k/261904k available (1960k kernel code, 8072k reserved, 424= k=20 data, 144k init, 65296k highmem) Mount-cache hash table entries: 512 NET: Registered protocol family 16 SCSI subsystem initialized IOMMU: impl 0 vers 4 table 0xfbe80000[262144 B] map [65536 b] sbus0: Clock 25.0 MHz dma0: Revision 2 dma1: Revision 2 highmem bounce pool size: 64 pages Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Initializing Cryptographic API Console: switching to mono PROM 80x25 rtc_init: no PC rtc found ioremap: done with statics, switching to malloc zs2 at 0xfd014004 (irq =3D 44) is a SunZilog zs3 at 0xfd014000 (irq =3D 44) is a SunZilog Console: ttyS0 (SunZilog zs0) ttyS0 at MMIO 0x0 (irq =3D 44) is a SunZilog ttyS1 at MMIO 0x0 (irq =3D 44) is a SunZilog io scheduler noop registered RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) sunlance.c:v2.02 8/24/03 Miguel de Icaza (miguel@nuclecu.unam.mx) SunLance: using auto-carrier-detection. SunLance: warning: overriding option 'tpe-link-test?' SunLance: warning: mail any problems to ecd@skynet.be eth0: LANCE 52:54:00:12:34:56 esp0: IRQ 36 SCSI ID 7 Clk 20MHz CCYC=3D50000 CCF=3D4 TOut 167 NCR53C90(e= sp100) ESP: Total of 1 ESP hosts found, 1 actually in use. scsi0 : Sparc ESP100 (NCR53C90) Vendor: QEMU Model: QEMU HARDDISK Rev: Type: Direct-Access ANSI SCSI revision: 01 Vendor: QEMU Model: QEMU HARDDISK Rev: Type: Direct-Access ANSI SCSI revision: 01 Vendor: QEMU Model: QEMU CDROM Rev: Type: CD-ROM ANSI SCSI revision: 01 sda : sector size 0 reported, assuming 512. SCSI device sda: 1 512-byte hdwr sectors (0 MB) sda: asking for cache data failed sda: assuming drive cache: write through SCSI device sda: 300001 512-byte hdwr sectors (154 MB) sda: asking for cache data failed sda: assuming drive cache: write through sda: unknown partition table Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 sdb : sector size 0 reported, assuming 512. SCSI device sdb: 1 512-byte hdwr sectors (0 MB) sdb: asking for cache data failed sdb: assuming drive cache: write through SCSI device sdb: 512001 512-byte hdwr sectors (262 MB) sdb: asking for cache data failed sdb: assuming drive cache: write through sdb: unknown partition table Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0 sr0: scsi3-mmc drive: 0x/0x caddy Uniform CD-ROM driver Revision: 3.20 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Attached scsi generic sg1 at scsi0, channel 0, id 1, lun 0, type 0 Attached scsi generic sg2 at scsi0, channel 0, id 2, lun 0, type 5 rtc_sun_init: Registered Mostek RTC driver. mice: PS/2 mouse device common for all mice NET: Registered protocol family 2 input: Sun Type 5 keyboard on zs/serio0 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 144k freed INIT: version 2.86 booting Activating swap. System time was Wed May 22 21:08:21 UTC 1974. Setting the System Clock using the Hardware Clock as reference... System Clock set. System local time is now Wed May 22 21:08:25 UTC 1974. Checking all file systems... fsck 1.37 (21-Mar-2005) WARNING: Your /etc/fstab does not contain the fsck passno field. I will kludge around things for you, but you should fix your /etc/fstab file as soon as you can. Setting kernel variables ... ... done. Mounting local filesystems... Cleaning /tmp /var/run /var/lock. Starting hotplug subsystem: pci cat: /sys/bus/pci/devices/*/class: No such file or directory cat: /sys/bus/pci/devices/*/vendor: No such file or directory cat: /sys/bus/pci/devices/*/device: No such file or directory cat: /sys/bus/pci/devices/*/subsystem_vendor: No such file or directory cat: /sys/bus/pci/devices/*/subsystem_device: No such file or directory Bad PCI agent invocation pci [success] usb usb [success] isapnp isapnp [success] ide ide [success] input /etc/hotplug/input.agent: arith: syntax error: "0x010" input [success] scsi modprobe: Can't open dependencies file /lib/modules/2.6.13-sam/modules.de= p (No=20 such file or directory) sd_mod: can't be loaded (for disk) modprobe: Can't open dependencies file /lib/modules/2.6.13-sam/modules.de= p (No=20 such file or directory) sd_mod: can't be loaded (for disk) modprobe: Can't open dependencies file /lib/modules/2.6.13-sam/modules.de= p (No=20 such file or directory) sr_mod: can't be loaded (for cdrom) modprobe: Can't open dependencies file /lib/modules/2.6.13-sam/modules.de= p (No=20 such file or directory) sg: can't be loaded (for cdrom) scsi [success] done. Setting the System Clock using the Hardware Clock as reference... System Clock set. Local time: Wed May 22 21:09:37 UTC 1974 Initializing random number generator...done. INIT: PANIC: segmentation violation! sleeping for 30 seconds.