From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BG5ea-0001Sc-Rg for qemu-devel@nongnu.org; Tue, 20 Apr 2004 20:31:52 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BG5dt-00018k-5S for qemu-devel@nongnu.org; Tue, 20 Apr 2004 20:31:51 -0400 Received: from [62.210.158.41] (helo=moscou.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BG5dR-0000ep-TW for qemu-devel@nongnu.org; Tue, 20 Apr 2004 20:30:42 -0400 Subject: Re: [Qemu-devel] PPC emulation, how? From: "J. Mayer" In-Reply-To: <4085B1B9.5040604@olifantasia.com> References: <1081879720.639650.64402.zmail@web1.zwallet.com> <1081882610.13140.185.camel@jma1.dev.netgem.com> <407D49CE.5090900@olifantasia.com> <1082137461.24066.376.camel@jma1.dev.netgem.com> <40830EDD.9080505@olifantasia.com> <1082363002.29001.41.camel@rapid> <4084168E.8070008@olifantasia.com> <1082409393.28998.46.camel@rapid> <1082414486.18537.2.camel@rilke> <4085B1B9.5040604@olifantasia.com> Content-Type: text/plain Message-Id: <1082507643.8968.9.camel@rapid> Mime-Version: 1.0 Date: Wed, 21 Apr 2004 02:34:03 +0200 Content-Transfer-Encoding: 7bit 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 Cc: qemumail@olifantasia.com On Wed, 2004-04-21 at 01:26, Martin wrote: > IWith the ne2000 patch I can ping from host to qemu and from qemu to host. > nfsmount doesn't work yet. > I also tried a few tests with wget. > It fails on some and succeeds on other tests. The good thing is that you > can stop wget with ctrl-C (mount and ping from the debianinstalldisk > just stop reacting if they fail in qemu) Just try to use ping -c so you'll get the shell back... > I think there are more endianess problems because wget fails on all > files which are odd sized. > I made a few testfiles (less than 1 kb) and put them on my httpserver of > the host. > a text file of 907 bytes fails 906 bytes succeeds 905 bytes fails. > Fails in this case means the download doesn't even start. I didn't test wget, because it's used to crash when I try to launch it... I'm not sure those are endian problems. It may be timer problem or worse (MMU...). I have a new implementation of time-base/decrementer which makes Linux guest timings to be connected to reality. This also boosts the emulation by a factor of 2 or 3. I'm reworking exception management, which is not well implemented and may be buggy. This will also improve speed and (I hope) solve some emulation problems. > I am still not sure how to use the -S option and/or the gdb debugger > with qemu. '-S' option is really simple: it just stops qemu just before starting the emulation. You then have to enter the 'c' command in qemu monitor to let it run. You now have a PPC register dump in the monitor, too with 'info registers' The use of gdb is not easy when you emulate the whole system. I only use it to solve kernel problems. For userland problems, the best way may be to launch gdb in the guest system :-) -- J. Mayer Never organized