Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdWHo-0000E3-5R for qemu-devel@nongnu.org; Tue, 09 May 2006 13:46:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdWHm-0000DN-4J for qemu-devel@nongnu.org; Tue, 09 May 2006 13:46:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdWHl-0000DG-RR for qemu-devel@nongnu.org; Tue, 09 May 2006 13:46:13 -0400 Received: from [194.84.254.251] (helo=mx.globalone.ru) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FdWIr-00044f-G9 for qemu-devel@nongnu.org; Tue, 09 May 2006 13:47:22 -0400 Received: from mx.globalone.ru (localhost [127.0.0.1]) by mx.globalone.ru (8.13.1/8.13.1) with ESMTP id k49Hjwqg032417 for ; Tue, 9 May 2006 21:45:58 +0400 Received: from smtp.globalone.ru (smtp.globalone.ru [172.16.38.5]) by mx.globalone.ru (8.13.1/8.13.1) with ESMTP id k49HjnIt032410 for ; Tue, 9 May 2006 21:45:49 +0400 Received: from voropaya ([172.16.38.7]) by smtp.globalone.ru (Netscape Messaging Server 4.15) with SMTP id IZ0EOD00.QRV for ; Tue, 9 May 2006 21:45:49 +0400 Message-ID: <19eb01c67390$68c147e0$e90d11ac@spb.in.rosprint.ru> From: "Alexander Voropay" References: <2a0701c66ee4$39d3f9b0$e90d11ac@spb.in.rosprint.ru> Subject: Re: [Qemu-devel] MIPS: UART access w/o -kernel option Date: Tue, 9 May 2006 21:45:38 +0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original Content-Transfer-Encoding: 7bit Reply-To: Alexander Voropay , 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 Alexander Voropay wrote: > I'm still trying to run a MIPS mmon as a BIOS :) > > I've found one strange issue : when it runs at the >KSEG0 region (0x80008000) with -kernel option it works fine. >When I'm trying to run it in the MIPS BIOS region (0xbfc00000) >it can't output anything to the UART and Qemu segfaults >on the any keypress (not my program, but whole Qemu !) I've found this bug : hw/mips_r4k.c:mips_r4k_init() Qemu/MIPS does not initialize an ISA memory region when issued without -kernel option. (I've added some debug output). Whith -kernel: cpu_register_physical_memory: start=00000000, size=08000000, offset=00000000 cpu_register_physical_memory: start=14000000, size=00010000, offset=00000050 cpu_register_physical_memory: start=100A0000, size=00020000, offset=00000060 cpu_register_physical_memory: start=E0000000, size=00400000, offset=08000000 Without -kernel: cpu_register_physical_memory: start=00000000, size=08000000, offset=00000000 cpu_register_physical_memory: start=1FC00000, size=00020000, offset=08400010 Segmentation fault Could someone correct this ? The ISA region and devices initialization should be performed *before* any fileload. P.S. The MIPS initial state (PC=0xbfc00000) is defined twice in the qemu: ./target-mips/translate.c:cpu_mips_init():1766 and ./hw/mips_r4k.c:mips_r4k_init() Seems, this is a bug too. -- -=AV=-