sim: unify scache settings
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jun 2021 02:39:16 +0000 (22:39 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jun 2021 17:33:18 +0000 (13:33 -0400)
commitb79efe264f9d2d4fc5b0491acd3258063b309723
tree75808110808964a8813af7df9a5e8cf03b547dc7
parente7954ef5e5ed90fb7d28c013518f4c2e6bcd20a1
sim: unify scache settings

The cgen scache module is enabled by every cgen port, and with the
same default value of 16k (which matches the common default value).
Let's pull this option out of the individual ports (via CPPFLAGS)
and into the common code (via config.h).

The object itself is compiled only for cgen ports atm, so that part
doesn't change.  The scache code is initialized dynamically via the
modules.c logic.  That's why the profile code needs an additional
CGEN_ARCH check.

This will allow us to collapse arch configure files more.  Merging
the source files will require more future work, but integrating the
cgen & non-cgen worlds itself will take a lot.
45 files changed:
sim/ChangeLog
sim/Makefile.in
sim/aclocal.m4
sim/bpf/ChangeLog
sim/bpf/aclocal.m4
sim/bpf/configure
sim/bpf/configure.ac
sim/common/ChangeLog
sim/common/Make-common.in
sim/common/cgen-scache.h
sim/common/sim-profile.c
sim/config.h.in
sim/configure
sim/configure.ac
sim/cris/ChangeLog
sim/cris/aclocal.m4
sim/cris/configure
sim/cris/configure.ac
sim/frv/ChangeLog
sim/frv/aclocal.m4
sim/frv/configure
sim/frv/configure.ac
sim/iq2000/ChangeLog
sim/iq2000/aclocal.m4
sim/iq2000/configure
sim/iq2000/configure.ac
sim/lm32/ChangeLog
sim/lm32/aclocal.m4
sim/lm32/configure
sim/lm32/configure.ac
sim/m32r/ChangeLog
sim/m32r/aclocal.m4
sim/m32r/configure
sim/m32r/configure.ac
sim/m4/sim_ac_option_scache.m4
sim/m4/sim_ac_output.m4
sim/mips/configure
sim/mn10300/configure
sim/or1k/ChangeLog
sim/or1k/aclocal.m4
sim/or1k/configure
sim/or1k/configure.ac
sim/riscv/ChangeLog
sim/riscv/configure
sim/v850/configure