summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsps/powerpc/virtex/config/virtex.cfg2
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/configure.ac2
2 files changed, 3 insertions, 1 deletions
diff --git a/bsps/powerpc/virtex/config/virtex.cfg b/bsps/powerpc/virtex/config/virtex.cfg
index 412b0da7b9..c108b01bac 100644
--- a/bsps/powerpc/virtex/config/virtex.cfg
+++ b/bsps/powerpc/virtex/config/virtex.cfg
@@ -9,7 +9,7 @@ RTEMS_CPU=powerpc
# This contains the compiler options necessary to select the CPU model
# and (hopefully) optimize for it.
#
-CPU_CFLAGS = -mcpu=403 -Dppc405 -meabi -msdata=sysv -fno-common
+CPU_CFLAGS = -mcpu=403 -meabi -msdata=sysv -fno-common
# optimize flag: typically -0, could use -O4 or -fast
# -O4 is ok for RTEMS
diff --git a/c/src/lib/libbsp/powerpc/virtex/configure.ac b/c/src/lib/libbsp/powerpc/virtex/configure.ac
index ceea283e2e..b70adf1af5 100644
--- a/c/src/lib/libbsp/powerpc/virtex/configure.ac
+++ b/c/src/lib/libbsp/powerpc/virtex/configure.ac
@@ -36,6 +36,8 @@ VIRTEX_REGION([VIRTEX_FAST_RAM_LENGTH],[fast RAM region length],[0x0])
VIRTEX_REGION([VIRTEX_RESET_ORIGIN],[reset region origin],[0x7ffffec])
VIRTEX_REGION([VIRTEX_RESET_LENGTH],[reset region length],[0x14])
+AC_DEFINE(ppc405, 1, [PowerPC model option])
+
RTEMS_BSP_CLEANUP_OPTIONS
# Explicitly list all Makefiles here