sim: reorder header includes
authorMike Frysinger <vapier@gentoo.org>
Sun, 5 Dec 2021 01:24:55 +0000 (20:24 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 5 Dec 2021 03:09:26 +0000 (22:09 -0500)
commit20a8e078cc573f85f7262f7b87be3cf8e8a6424f
tree3566c07524f60dfdf62b80576dc9151afb37b3e6
parent671fac7c4526b61143f860c4800047c3f7ff6fc4
sim: reorder header includes

We're including system headers after local headers in a bunch of
places, but this leads to conflicts when our local headers happen
to define symbols that show up in the system headers.

Use the more standard order of:
* config.h (via defs.h)
* system headers
* local library headers (e.g. bfd & libiberty)
* sim specific headers
45 files changed:
include/sim/callback.h
sim/common/callback.c
sim/common/cgen-par.c
sim/common/cgen-scache.c
sim/common/cgen-trace.c
sim/common/cgen-utils.c
sim/common/dv-cfi.c
sim/common/dv-glue.c
sim/common/dv-pal.c
sim/common/dv-sockser.c
sim/common/genmloop.sh
sim/common/hw-alloc.c
sim/common/hw-base.c
sim/common/hw-device.c
sim/common/hw-events.c
sim/common/hw-handles.c
sim/common/hw-ports.c
sim/common/hw-properties.c
sim/common/hw-tree.c
sim/common/nrun.c
sim/common/sim-arange.c
sim/common/sim-assert.h
sim/common/sim-basics.h
sim/common/sim-config.c
sim/common/sim-core.c
sim/common/sim-cpu.c
sim/common/sim-engine.c
sim/common/sim-events.c
sim/common/sim-fpu.c
sim/common/sim-hload.c
sim/common/sim-hw.c
sim/common/sim-io.c
sim/common/sim-io.h
sim/common/sim-load.c
sim/common/sim-memopt.c
sim/common/sim-model.c
sim/common/sim-module.c
sim/common/sim-options.c
sim/common/sim-profile.c
sim/common/sim-reason.c
sim/common/sim-signal.c
sim/common/sim-trace.c
sim/common/sim-utils.c
sim/common/sim-watch.c
sim/common/syscall.c