From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYjsD-0000Av-Ci for qemu-devel@nongnu.org; Thu, 28 Aug 2008 11:57:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYjs9-00008o-Nz for qemu-devel@nongnu.org; Thu, 28 Aug 2008 11:57:24 -0400 Received: from [199.232.76.173] (port=55173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYjs9-00008e-EB for qemu-devel@nongnu.org; Thu, 28 Aug 2008 11:57:21 -0400 Received: from wf-out-1314.google.com ([209.85.200.172]:42721) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYjs8-0007dZ-N8 for qemu-devel@nongnu.org; Thu, 28 Aug 2008 11:57:21 -0400 Received: by wf-out-1314.google.com with SMTP id 27so390647wfd.4 for ; Thu, 28 Aug 2008 08:57:17 -0700 (PDT) Message-ID: Date: Thu, 28 Aug 2008 18:57:16 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] [sparc64] qemu crashes after the "OpenBIOS for Sparc64" banner is printed In-Reply-To: <48B6A035.2090105@jermar.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B6A035.2090105@jermar.eu> Reply-To: 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, jakub@jermar.eu On 8/28/08, Jakub Jermar wrote: > Hi, > > when I build qemu-system-sparc64 from trunk and attempt to > boot the HelenOS iso image, I immediately get segmentation fault. > Below is the output from a gdb session, show the place of > crash: > > OpenBIOS for Sparc64 > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb7b616b0 (LWP 16553)] > change_pstate (new_pstate=21) at /home/jermar/install/qemu/target-sparc/op_helper.c:2676 > 2676 pstate_regs = env->pstate & 0xc01; > (gdb) bt > #0 change_pstate (new_pstate=21) at /home/jermar/install/qemu/target-sparc/op_helper.c:2676 > #1 0x0814d3b4 in do_interrupt (env=0x83d9bc8) at /home/jermar/install/qemu/target-sparc/helper.c:758 > #2 0x080d6510 in cpu_sparc_exec (env1=0x0) at /home/jermar/install/qemu/cpu-exec.c:320 > #3 0x08055cca in main_loop () at /home/jermar/install/qemu/vl.c:7545 > Backtrace stopped: previous frame inner to this frame (corrupt stack?) > 2676 pstate_regs = env->pstate & 0xc01; > (gdb) print env > $1 = (struct CPUSPARCState *) 0xbfdb97c8 > (gdb) print env->pstate > Cannot access memory at address 0xbfdc717c > > Since I get this error so early, I think this is a generic issue. > Anyone else has seen something similar? > > I built qemu using gcc-3.3. The arguments I used to run qemu: > -cdrom image.iso -m 512 -boot d -nographic > > Please, respond to me directly as I am not subscribed to the list. What host? On my amd64 and using the latest OpenBIOS I get this: boot: Allocated 8 Megs of memory at 0x40000000 for kernel Kernel doesn't support loading to high memory, relocating...done. Loaded kernel version 0.0.0 service close: argument count error (0 0) HelenOS SPARC64 Bootloader Release 0.2.0.5, revision exported Built on 2007-06-18 23:55:43 Copyright (c) 2006 HelenOS project System info memory: 512M starting at 0x0000000000000000 Memory statistics kernel entry point at 0x0000000000400000 0x0000000000008e78: boot info structure 0x00000000000092cc: kernel image (size 459416 bytes) 0x0000000000079564: ns image (size 221421 bytes) 0x00000000000af651: init image (size 221340 bytes) 0x00000000000e56ed: fb image (size 239587 bytes) 0x000000000011fed0: kbd image (size 254904 bytes) 0x000000000015e288: console image (size 404892 bytes) 0x00000000001c1024: tetris image (size 239492 bytes) 0x00000000001fb7a8: tester image (size 238840 bytes) 0x0000000000235ca0: klog image (size 204910 bytes) Copying components kernel...done. ns...done. init...done. fb...done. kbd...done. console...done. tetris...done. tester...done. klog...done. Canonizing OpenFirmware device tree...done. Checking for secondary processors...done. Booting the kernel... Using the version in pc-bios it does not get this far, but does not crash either: boot: Allocated 8 Megs of memory at 0x40000000 for kernel Kernel doesn't support loading to high memory, relocating...done. Loaded kernel version 0.0.0 service close: argument count error (0 0) HelenOS SPARC64 Bootloader Release 0.2.0.5, revision exported Built on 2007-06-18 23:55:43 Copyright (c) 2006 HelenOS project Error: no memory detected, halting.