From 2caa006b35adbfd48ca9765d9f4c4e4fe569182a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Feb 1999 00:29:47 +0000 Subject: Added instruction and data cache enable. --- make/custom/dmv177.cfg | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'make') 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 -- cgit v1.2.3