From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N6Mbe-0007SX-8d for qemu-devel@nongnu.org; Fri, 06 Nov 2009 06:03:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N6MbZ-0007RY-3n for qemu-devel@nongnu.org; Fri, 06 Nov 2009 06:03:49 -0500 Received: from [199.232.76.173] (port=38836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N6MbY-0007RV-UQ for qemu-devel@nongnu.org; Fri, 06 Nov 2009 06:03:44 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:56378) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N6MbY-0006oU-0e for qemu-devel@nongnu.org; Fri, 06 Nov 2009 06:03:44 -0500 Message-ID: <4AF4028B.1080703@mail.berlios.de> Date: Fri, 06 Nov 2009 12:03:39 +0100 From: Stefan Weil MIME-Version: 1.0 Subject: Re: [Qemu-devel] How to add a new machine support in qemu? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Qiu Cc: qemu-devel@nongnu.org Michael Qiu schrieb: > Thanks for your reply. I'm reading hw/mips_r4k.c. But I found I should > dive into the source code. > I'm looking for some big picture level document for add a new machine > using a supported core. > It seems qemu consists 3 parts of code > 1. The core dynamic translate engineer to support several archs, just > like mips, arm, ppc.... > 2. The peripheral emulation pool. > 3. The platform relative code, just like hw/mips_jazz.c ..., it just > connect the arch and the peripherals according to the real board. > I think my work should be the 2 and 3. And I'd like to find some > documents for them. > You are correct, 2 and 3 is needed. There are no documents (at least I don't know any). Take mips_jazz.c or mips_malta.c, make a copy of one of them and fit it to your needs (don't forget to extend Makefiles). Regards Stefan