qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] clean-ups?


From: Fabrice Bellard
Subject: Re: [Qemu-devel] clean-ups?
Date: Fri, 27 Jun 2003 19:42:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020828

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]