]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
sim: cgen: inline cgen_init logic
authorMike Frysinger <vapier@gentoo.org>
Sat, 5 Jun 2021 14:21:46 +0000 (10:21 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 9 Jun 2021 22:21:28 +0000 (18:21 -0400)
commit906192d7859f9e768fc73f330e10d3b3a4ddaba3
treef55e6c1aad3a8083932ffd01027856078a0d6a28
parentc70fdc45f60845852f98eae3b8035de1a2df78de
sim: cgen: inline cgen_init logic

This function has done only one thing: post-process command line
settings to see if profiling or tracing has been enabled, and if
so, set the run_fast_p flag in the simulator state.  That flag is
only used in one place: to select the fast or slow cgen engine.
By inlining the run_fast_p logic to the one place it's used, we
can delete a good amount of logic specific to cgen ports: both
the call to cgen_init and the conditional simulator state.  This
in turn allows us to have a single simulator state struct across
all ports so we can share objects more between them, and makes
the sim_open calls look more consistent.
20 files changed:
sim/bpf/ChangeLog
sim/bpf/sim-if.c
sim/common/ChangeLog
sim/common/cgen-defs.h
sim/common/cgen-run.c
sim/common/cgen-utils.c
sim/common/sim-base.h
sim/cris/ChangeLog
sim/cris/sim-if.c
sim/frv/ChangeLog
sim/frv/sim-if.c
sim/iq2000/ChangeLog
sim/iq2000/sim-if.c
sim/lm32/ChangeLog
sim/lm32/sim-if.c
sim/m32r/ChangeLog
sim/m32r/sim-if.c
sim/or1k/ChangeLog
sim/or1k/sim-if.c
sim/or1k/traps.c