qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] How to split vl.h


From: Thiemo Seufer
Subject: Re: [Qemu-devel] How to split vl.h
Date: Wed, 31 Oct 2007 23:06:50 +0000
User-agent: Mutt/1.5.16 (2007-06-11)

Blue Swirl wrote:
> Hi,
> 
> With the automatic dependency rule installed, modifying vl.h causes
> all files to be recompiled. This is of course the correct action, but
> it's a major slowdown for development too.
> 
> How should we split vl.h into smaller pieces? Give each device a
> header file, like m48t59?

Functions which are only called from below /hw should go in /hw/<device>.h,
other device stuff should probably go in a separate toplevel header,
maybe hw.h. That way we get something which could evolve in the
interface of a hw-library in future.

> What about other stuff exported from vl.c?

I think the best answer is to cut vl.c in logical chunks before starting
to split vl.h further.


Thiemo




reply via email to

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