mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-20 05:23:21 +08:00
Added instruction and data cache enable.
This commit is contained in:
+13
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user