summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-05 00:29:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-05 00:29:47 +0000
commit2caa006b35adbfd48ca9765d9f4c4e4fe569182a (patch)
treeb59f15e57f663072224b5d684c7040083a6a0ac7 /make
parentecec2ba7bd4f5b4786c30f7ed40db5faa124352d (diff)
downloadrtems-2caa006b35adbfd48ca9765d9f4c4e4fe569182a.tar.bz2
Added instruction and data cache enable.
Diffstat (limited to 'make')
-rw-r--r--make/custom/dmv177.cfg15
1 files changed, 13 insertions, 2 deletions
diff --git a/make/custom/dmv177.cfg b/make/custom/dmv177.cfg
index ba19d94782..49bc0f828a 100644
--- a/make/custom/dmv177.cfg
+++ b/make/custom/dmv177.cfg
@@ -52,10 +52,19 @@ RTEMS_BSP_FAMILY=dmv177
# response time. The use of these registers can conflict with
# other tools like debuggers.
#
-# PPC_USE_DATA_CACHE (RTEMS PowerPC port)
+# PPC_USE_DATA_CACHE (RTEMS PowerPC port/BSP)
# If defined, then the PowerPC specific code in RTEMS will use
# data cache instructions to optimize the context switch code.
-# This code can conflict with debuggers or emulators.
+# This code can conflict with debuggers or emulators. It is known
+# to break the Corelis PowerPC emulator with at least some combinations
+# of PowerPC 603e revisions and emulator versions.
+# The BSP actually contains the call that enables this.
+#
+# PPC_USE_INSTRUCTION_CACHE (RTEMS PowerPC port/BSP)
+# If defined, then the PowerPC specific code in RTEMS will use
+# data cache instructions to optimize the context switch code.
+# This code can conflict with debuggers or emulators.
+# The BSP actually contains the call that enables this.
define make-target-options
@echo "/* #define NDEBUG 1 */ " >>$@
@@ -68,12 +77,14 @@ define make-target-options
@echo "#define PPC_ASM PPC_ASM_ELF" >>$@
@echo "#define PPC_USE_SPRG 0" >>$@
@echo "#define PPC_USE_DATA_CACHE 0" >>$@
+ @echo "#define PPC_USE_INSTRUCTION_CACHE 1" >>$@
endef
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
CPU_CFLAGS = -mcpu=603
+#CFLAGS_DEBUG_OPTIMIZE_V=
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS