[PATCH 1/2] bsps/powerpc: Hack to fix the build
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Jun 7 07:51:33 UTC 2018
The ppc405 define must be checked before the ppc403 define. The ppc405
define is provided by <bspopts.h>. The ppc403 define is provided by GCC
as a built-in define if no ppc* or mpc* define is set via the
command line (see GCC sources "gcc/config/rs6000/rtems.h").
Update #3425.
---
bsps/powerpc/include/rtems/powerpc/powerpc.h | 30 +++++++++++++++++-----------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/bsps/powerpc/include/rtems/powerpc/powerpc.h b/bsps/powerpc/include/rtems/powerpc/powerpc.h
index 8b2cf1e371..f1b6e80db2 100644
--- a/bsps/powerpc/include/rtems/powerpc/powerpc.h
+++ b/bsps/powerpc/include/rtems/powerpc/powerpc.h
@@ -111,7 +111,24 @@ extern "C" {
* predefines.
*/
-#if defined(ppc403)
+/*
+ * FIXME: The ppc405 define must be checked before the ppc403 define. The
+ * ppc405 define is provided by <bspopts.h>. The ppc403 define is provided by
+ * GCC as a built-in define if no ppc* or mpc* define is set via the
+ * command line (see GCC sources "gcc/config/rs6000/rtems.h").
+ */
+#if defined(ppc405)
+
+#define PPC_CACHE_ALIGNMENT 32
+#define PPC_HAS_RI 0
+#define PPC_HAS_RFCI 1
+#define PPC_USE_MULTIPLE 1
+#define PPC_I_CACHE 16384
+#define PPC_D_CACHE 16384 /* except GP/CR */
+#define PPC_HAS_EXCEPTION_PREFIX 0
+#define PPC_HAS_EVPR 1
+
+#elif defined(ppc403)
/*
* IBM 403
*
@@ -130,17 +147,6 @@ extern "C" {
#define PPC_HAS_EXCEPTION_PREFIX 0
#define PPC_HAS_EVPR 1
-#elif defined (ppc405)
-
-#define PPC_CACHE_ALIGNMENT 32
-#define PPC_HAS_RI 0
-#define PPC_HAS_RFCI 1
-#define PPC_USE_MULTIPLE 1
-#define PPC_I_CACHE 16384
-#define PPC_D_CACHE 16384 /* except GP/CR */
-#define PPC_HAS_EXCEPTION_PREFIX 0
-#define PPC_HAS_EVPR 1
-
#elif defined (ppc440)
#define PPC_CACHE_ALIGNMENT 32
--
2.13.7
More information about the devel
mailing list