From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tinki-000797-Jq for qemu-devel@nongnu.org; Wed, 12 Dec 2012 09:57:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TinkZ-0005xk-BZ for qemu-devel@nongnu.org; Wed, 12 Dec 2012 09:57:40 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5]:39909 helo=homiemail-a56.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TinkZ-0005xN-0E for qemu-devel@nongnu.org; Wed, 12 Dec 2012 09:57:31 -0500 Message-ID: <50C89B59.7000707@eagerm.com> Date: Wed, 12 Dec 2012 06:57:29 -0800 From: Michael Eager MIME-Version: 1.0 References: <50C77E2D.4030901@eagerm.com> <50C893E5.8010806@suse.de> In-Reply-To: <50C893E5.8010806@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Internal documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: qemu-devel , Stefan Hajnoczi On 12/12/2012 06:25 AM, Andreas F=C3=A4rber wrote: > Hi, > > Am 11.12.2012 19:40, schrieb Michael Eager: >> Is there any internal documentation for QEMU? >> >> I'm adding support for a new processor. I'm currently >> adding semihosting support and a new command line option. >> I find that I'm reading a lot of uncommented code and >> trying to reverse engineer QEMU's design by reading how >> various targets are implemented. >> >> Is there a better way? > > Look at the latest added target-openrisc in qemu.git and/or at my > target-rl78 at GitHub.com/afaerber/qemu-rl78/. That will also give you > some ideas how to split your new target into reviewable patches. Thanks. I've been using openrisc as well as others as examples. It isn't clear whether the support will be submitted. The target is a proprietary processor. So I don't get the benefit of public review of the code. > Also look at the mailing list, you may find old/bad examples in our cod= e > base but patch review usually points out the right ways to do things > nowadays. When in doubt, ask. :) Thanks. --=20 Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077