qemu-patch-raspberry4/target/hppa
Markus Armbruster ec150c7e09 include: Make headers more self-contained
Back in 2016, we discussed[1] rules for headers, and these were
generally liked:

1. Have a carefully curated header that's included everywhere first.  We
   got that already thanks to Peter: osdep.h.

2. Headers should normally include everything they need beyond osdep.h.
   If exceptions are needed for some reason, they must be documented in
   the header.  If all that's needed from a header is typedefs, put
   those into qemu/typedefs.h instead of including the header.

3. Cyclic inclusion is forbidden.

This patch gets include/ closer to obeying 2.

It's actually extracted from my "[RFC] Baby steps towards saner
headers" series[2], which demonstrates a possible path towards
checking 2 automatically.  It passes the RFC test there.

[1] Message-ID: <87h9g8j57d.fsf@blackfin.pond.sub.org>
    https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03345.html
[2] Message-Id: <20190711122827.18970-1-armbru@redhat.com>
    https://lists.nongnu.org/archive/html/qemu-devel/2019-07/msg02715.html

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190812052359.30071-2-armbru@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2019-08-16 13:31:51 +02:00
..
cpu-param.h tcg: Split out target/arch/cpu-param.h 2019-06-10 07:03:34 -07:00
cpu-qom.h target-hppa: Add framework and enable compilation 2017-01-23 09:52:40 -08:00
cpu.c hppa: Delete unused hppa_cpu_list() function 2019-07-05 17:08:03 -03:00
cpu.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00
gdbstub.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
helper.c target/hppa: Use env_cpu, env_archcpu 2019-06-10 07:03:34 -07:00
helper.h target/hppa: add TLB protection id check 2019-03-12 09:13:43 -07:00
insns.decode target/hppa: Implement Fast TLB Insert instructions 2019-04-29 14:43:39 -07:00
int_helper.c target/hppa: Use env_cpu, env_archcpu 2019-06-10 07:03:34 -07:00
machine.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
Makefile.objs target/hppa: Begin using scripts/decodetree.py 2019-02-12 08:48:27 -08:00
mem_helper.c target/hppa: Use env_cpu, env_archcpu 2019-06-10 07:03:34 -07:00
op_helper.c target/hppa: Use env_cpu, env_archcpu 2019-06-10 07:03:34 -07:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00
translate.c decodetree: Add DisasContext argument to !function expanders 2019-05-06 11:18:34 -07:00