On 15 December 2015 at 14:28, Paolo Bonzini wrote:
> These patches are perhaps the only somewhat controversial part.
> Generally, we add opaque typedefs to typedefs.h in order to avoid
> indirect header inclusions. However, this might not be desirable
> for target specific types such as FooCPU.
On 15/12/2015 17:06, Peter Maydell wrote:
> > These patches are perhaps the only somewhat controversial part.
> > Generally, we add opaque typedefs to typedefs.h in order to avoid
> > indirect header inclusions. However, this might not be desirable
> > for target specific types such as FooCPU.
Hi,
a while ago I started removing cpu.h dependencies from several headers
in QEMU. In particular, I wanted to put an end to qemu-common.h's
including cpu.h and vice versa. This is useful for two reasons: 1)
because both headers bring in a lot of dependencies and thus very small
changes can caus