From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HYQe8-0001UU-CR for qemu-devel@nongnu.org; Mon, 02 Apr 2007 13:48:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HYQe7-0001Rt-P3 for qemu-devel@nongnu.org; Mon, 02 Apr 2007 13:48:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HYQe7-0001RH-KM for qemu-devel@nongnu.org; Mon, 02 Apr 2007 13:48:47 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HYQb3-0007x1-KE for qemu-devel@nongnu.org; Mon, 02 Apr 2007 13:45:37 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Simtec BAST emulation Date: Mon, 2 Apr 2007 18:45:10 +0100 References: <1175522199.18271.19.camel@petitemort.i.digital-scurf.org> In-Reply-To: <1175522199.18271.19.camel@petitemort.i.digital-scurf.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704021845.10852.paul@codesourcery.com> 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, dsilvers@simtec.co.uk On Monday 02 April 2007 14:56, Daniel Silverstone wrote: > Hi, > > Myself and my colleagues have worked hard and produced a new system > emulation for qemu for the Simtec BAST board. A few issues with the patch, which I think need to be resolved before it can be applied: - You're using global structures to store machine state. While it's debatable whether you'll ever have more than one s3c2410, I think it's definitely still worth allowing for this possibility, and encapsulating the state in a structure, like all the other hardware emulation does. - For the device emulation (dm9000 and ide, maybe others) you should use pic_set_irq_new, instead of passing a separate set_irq function. Other ARM boards already support arbitrary routing of interrupts via hw/arm_pic.[ch]. - usb_ohci_mmap_init should look more like (or even be the same function as) usb_ohci_init_pxa. > The emulation is complete enough to start Simtec's ABLE boot loader > (downloadable from www.simtec.co.uk) and also is capable of being > direct-booted with a linux kernel/initrd combination as per the > versatile etc. What is the licence for ABLE? Would we be able to distribute it with qemu? Paul