Re: [Qemu-devel] [RFC PATCH 0/6] decouple board headers from cpu.h

2015-12-15 Thread Peter Maydell
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.

Re: [Qemu-devel] [RFC PATCH 0/6] decouple board headers from cpu.h

2015-12-15 Thread Paolo Bonzini
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.

[Qemu-devel] [RFC PATCH 0/6] decouple board headers from cpu.h

2015-12-15 Thread Paolo Bonzini
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