From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1n4e-0005qw-4T for qemu-devel@nongnu.org; Thu, 17 Feb 2005 09:56:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1n4Z-0005oX-Kr for qemu-devel@nongnu.org; Thu, 17 Feb 2005 09:56:08 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1n4Z-0005oD-FI for qemu-devel@nongnu.org; Thu, 17 Feb 2005 09:56:07 -0500 Received: from [62.210.158.41] (helo=moscou.magic.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D1mpL-0000mk-P0 for qemu-devel@nongnu.org; Thu, 17 Feb 2005 09:40:24 -0500 Received: from [192.168.0.2] (ppp-181.net-555.magic.fr [62.210.255.181]) by moscou.magic.fr (8.11.6/8.10.1) with ESMTP id j1HEeIh25492 for ; Thu, 17 Feb 2005 15:40:18 +0100 (CET) Subject: Re: [Qemu-devel] Using QEMU for embedded systems From: "J. Mayer" In-Reply-To: <87ll9nhc8l.fsf@p4.48ers.dk> References: <20050216143805.57205.qmail@web50702.mail.yahoo.com> <87ll9nhc8l.fsf@p4.48ers.dk> Content-Type: text/plain Message-Id: <1108651221.21864.307.camel@rapid> Mime-Version: 1.0 Date: Thu, 17 Feb 2005 15:40:22 +0100 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 On Thu, 2005-02-17 at 08:33, Peter Korsgaard wrote: > >>>>> "Waqqas" == Waqqas Jabbar writes: > Waqqas> I was thinking if qemu can emulate a complete PC, then it > Waqqas> might be a good canditate to use in embedded system > Waqqas> development to emulate a board. What do you think about it. > > I have been playing a bit around with that as well. I have modified > the PPC prep target to match one of our embedded systems (IBM405 > based). > > It's pretty basic, but I do get the first text out on the serial port > ;) - I'll need to implement some 40x specific instructions to continue. PPC 4xx support is planned. I already have a kernel emulation of 405 specific user-mode instructions, implemented like FP emulation. The goal is to be able to test PPC405 executables on standard ones (ie on Mac hw). I can quite easily transpose this in qemu. There's a lack of OEA specific instructions but most of them can be implemented with no-op. TLB management must be added, it may be really near the MIPS software TLB management (posted here a few days ago, message ID <1108309390.3148.12.camel@rapid>). DCR is quite like direct devices IOs, it should be quite easy to do efficientl,y quite like IO in softmmu, using a table of callbacks for read & writes, imho. The big part missing is the hardware emulation of 4xx internal devices. What is mandatory to boot is: - external bus controller - memory controller - timers & watchdog - interrupt controller - some GPIOs control may be needed - serial ports (which are not 16550 compatibles). Some other special SPRs may also be needed... I think most of the work to do is there, in hw emulation. I have a lack of detailed documentation about PPC 401. So, some links would be appreciated.... -- J. Mayer Never organized