summaryrefslogtreecommitdiff
path: root/sim/config.h.in
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-28 22:39:16 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-30 13:33:18 -0400
commitb79efe264f9d2d4fc5b0491acd3258063b309723 (patch)
tree75808110808964a8813af7df9a5e8cf03b547dc7 /sim/config.h.in
parente7954ef5e5ed90fb7d28c013518f4c2e6bcd20a1 (diff)
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.
Diffstat (limited to 'sim/config.h.in')
-rw-r--r--sim/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/config.h.in b/sim/config.h.in
index 8d926f3de7..ccd864340c 100644
--- a/sim/config.h.in
+++ b/sim/config.h.in
@@ -469,6 +469,9 @@
/* Sim profile settings */
#undef WITH_PROFILE
+/* Sim cache szie */
+#undef WITH_SCACHE
+
/* How to route I/O */
#undef WITH_STDIO