Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Vy2x-0005gB-34 for qemu-devel@nongnu.org; Fri, 27 Jun 2003 14:34:07 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19VxKZ-0007LV-Fx for qemu-devel@nongnu.org; Fri, 27 Jun 2003 13:48:16 -0400 Received: from smtp6.wanadoo.fr ([193.252.22.28] helo=mwinf0301.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.20) id 19VxG5-0005Ut-42 for qemu-devel@nongnu.org; Fri, 27 Jun 2003 13:43:37 -0400 Received: from free.fr (ATuileries-112-1-3-179.w81-48.abo.wanadoo.fr [81.48.134.179]) by mwinf0301.wanadoo.fr (SMTP Server) with ESMTP id 40B384007CA for ; Fri, 27 Jun 2003 19:43:36 +0200 (CEST) Message-ID: <3EFC8222.7020208@free.fr> Date: Fri, 27 Jun 2003 19:42:58 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] clean-ups? References: <20030627174839.21e3d1bc.jrydberg@night.trouble.net> Content-Type: text/plain; charset=us-ascii; format=flowed 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 Johan Rydberg wrote: > Now when QEMU is getting more and more targets (x86, arm and soon PPC), > isn't it maybe time to do some clean-ups of the code and maybe move > target-specifics into subdirectories (/i386, /arm, /ppc, ...) and give > the genric code some work to make it more target-independent? > > I'm very pedantic when it comes to the look of the code, and I really > don't like #ifdefs for targets in the generic code. > > Fabrice, what do you say? Maybe QEMU has come to the phase where it > is time to let go of the feature hunting for some minutes, and let > the code mature? I would hate to see QEMU grow into a unmaintainable > monster. Suppressing all #ifdefs (in particular in cpu-exec.c) will be impossible. 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. Fabrice.