hw: clean up hw/hw.h includes

Include qom/object.h and exec/memory.h instead of exec/ioport.h;
exec/ioport.h was almost everywhere required only for those two
includes, not for the content of the header itself.

Remove block/aio.h, everybody is already including it through
another path.

With this change, include/hw/hw.h is freed from qemu-common.h.

Backports commit df43d49cb8708b9c88a20afe0d1a3089b550a5b8 from qemu
This commit is contained in:
Paolo Bonzini 2018-02-24 02:46:08 -05:00 committed by Lioncash
parent d0d3712417
commit 9bb67a3f58
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -6,9 +6,9 @@
#error Cannot include hw/hw.h from user emulation #error Cannot include hw/hw.h from user emulation
#endif #endif
#include "qemu-common.h"
#include "exec/cpu-common.h" #include "exec/cpu-common.h"
#include "exec/ioport.h" #include "qom/object.h"
#include "exec/memory.h"
#ifdef NEED_CPU_H #ifdef NEED_CPU_H
#if TARGET_LONG_BITS == 64 #if TARGET_LONG_BITS == 64