unicorn/qemu/include
Peter Maydell 2f3f2ae092
Stop including qemu-common.h in memory.h
Including qemu-common.h from other header files is generally a bad
idea, because it means it's very easy to end up with a circular
dependency. For instance, if we wanted to include memory.h from
qom/cpu.h we'd end up with this loop:
memory.h -> qemu-common.h -> cpu.h -> cpu-qom.h -> qom/cpu.h -> memory.h

Remove the include from memory.h. This requires us to fix up a few
other files which were inadvertently getting declarations indirectly
through memory.h.

The biggest change is splitting the fprintf_function typedef out
into its own header so other headers can get at it without having
to include qemu-common.h.

Backports commit fba0a593b2809ecdda68650952cf3d3332ac1990 from qemu
2018-02-17 15:23:16 -05:00
..
exec Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
fpu softfloat: expand out STATUS macro 2018-02-12 13:43:13 -05:00
hw Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
qapi qerror: Move #include out of qerror.h 2018-02-17 15:23:10 -05:00
qemu Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00
qom exec: make iotlb RCU-friendly 2018-02-12 15:20:39 -05:00
sysemu ffs() is redundant 2017-01-21 11:11:22 +08:00
config.h import 2015-08-21 15:04:50 +08:00
elf.h fix merge conflicts 2017-03-10 21:04:33 +08:00
glib_compat.h platform.h move #3 2017-01-21 00:13:21 +11:00
qemu-common.h Stop including qemu-common.h in memory.h 2018-02-17 15:23:16 -05:00