Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19VzI9-0004rv-4V for qemu-devel@nongnu.org; Fri, 27 Jun 2003 15:53:53 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19VzHw-0004Dg-J7 for qemu-devel@nongnu.org; Fri, 27 Jun 2003 15:53:41 -0400 Received: from falcon.skarpodata.com ([193.45.208.6] helo=griffin.skarpodata.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VzHP-0003XV-6q for qemu-devel@nongnu.org; Fri, 27 Jun 2003 15:53:07 -0400 Received: from falcon.skarpodata.com (root@[164.9.187.2]) h5RJnXjB014702 for ; Fri, 27 Jun 2003 21:49:34 +0200 Received: (from mailgw@localhost) by falcon.skarpodata.com (8.9.3/8.9.3) id VAA06567 for ; Fri, 27 Jun 2003 21:53:05 +0200 Date: Fri, 27 Jun 2003 21:53:03 +0200 From: Johan Rydberg Subject: Re: [Qemu-devel] clean-ups? Message-Id: <20030627215303.1029a669.jrydberg@night.trouble.net> In-Reply-To: <3EFC8222.7020208@free.fr> References: <20030627174839.21e3d1bc.jrydberg@night.trouble.net> <3EFC8222.7020208@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , To: qemu-devel@nongnu.org Fabrice Bellard wrote: : Suppressing all #ifdefs (in particular in cpu-exec.c) will be : impossible. I can not see why so much target-dependent function must be put in cpu-exec.c. I see, for example, no need for the cpu_x86_load_seg. That could as easily be put in a target-dependent file. Almost everything target-dependent can be defined and put in a target header, in similar way that GCC, GDB and other GNU utils does it. And instead of testing for target, you may test for the perticular feature. The preprocessor is very handy, as I know you know. : But I agree that in many cases it is possible. An important : point I want to solve is how to build for several target CPUs at once : (it is very important for easier regression testing). My current idea is : to build qemu several times and to output object files in separate : directories (for example the target specifics ones you mention). Then : you will have several executables: qemu-i386, qemu-arm, qemu-ppc in the : main directory. I would like to see you crack that nut in a nice manner. :) Maybe it is just better to write some script that does several different builds and does the testing. : Fabrice. -- Johan Rydberg, Free Software Developer, Sweden http://rtmk.sf.net | http://www.nongnu.org/guss/ Playing The Supermen Lovers - Starlight