]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/mn10300/op_utils.c
sim: mn10300: minimize mn10300-sim.h include in sim-main.h
authorMark Wielaard <mark@klomp.org>
Sun, 15 Jan 2023 19:24:06 +0000 (20:24 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 19 Jan 2023 00:05:00 +0000 (01:05 +0100)
commitc064fab247691180b7bc317d44a9bcbf53a11ee7
tree5ea95bd01b55bb124443a4ee3cfe0e12758e5bdb
parenta184bce8040a9b71e36193905b830ed259a4d478
sim: mn10300: minimize mn10300-sim.h include in sim-main.h

sim-main.h is special since it is one of the files automatically
included in igen generated files. But this means anything including
sim-main.h might get everything included just for the igen files.

To prevent clashing symbols/defines only include sim-fpu.h,
sim-signal.h, mn10300-sim.h from sim-main.h if it is included
from one of the generated igen C files. Add explicit includes
of mn10300-sim.h, sim-fpu.h and/or sim-signal.h to dv-mn103cpu.c,
interp.c and op_utils.c.
sim/mn10300/dv-mn103cpu.c
sim/mn10300/interp.c
sim/mn10300/op_utils.c
sim/mn10300/sim-main.h