[PATCH 3/4] arm: Simplify architecture selection

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 8 09:48:54 UTC 2013


---
 cpukit/score/cpu/arm/rtems/score/arm.h |   68 ++-----------------------------
 1 files changed, 5 insertions(+), 63 deletions(-)

diff --git a/cpukit/score/cpu/arm/rtems/score/arm.h b/cpukit/score/cpu/arm/rtems/score/arm.h
index 8471bb4..91999b3 100644
--- a/cpukit/score/cpu/arm/rtems/score/arm.h
+++ b/cpukit/score/cpu/arm/rtems/score/arm.h
@@ -29,70 +29,12 @@ extern "C" {
  */
 /**@{**/
 
-/*
- *  This file contains the information required to build
- *  RTEMS for a particular member of the "arm"
- *  family when executing in protected mode.  It does
- *  this by setting variables to indicate which implementation
- *  dependent features are present in a particular member
- *  of the family.
- */
-#if defined(__ARM_ARCH_4__)
-#  define CPU_MODEL_NAME  "ARMv4"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_4T__)
-#  define CPU_MODEL_NAME  "ARMv4T"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_5__)
-#  define CPU_MODEL_NAME  "ARMv5"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_5T__)
-#  define CPU_MODEL_NAME  "ARMv5T"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_5E__)
-#  define CPU_MODEL_NAME  "ARMv5E"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_5TE__)
-#  define CPU_MODEL_NAME  "ARMv5TE"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_5TEJ__)
-#  define CPU_MODEL_NAME  "ARMv5TEJ"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_6J__)
-#  define CPU_MODEL_NAME  "ARMv6J"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_6ZK__)
-#  define CPU_MODEL_NAME  "ARMv6ZK"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_6M__)
-#  define CPU_MODEL_NAME  "ARMv6M"
-
-#elif defined(__ARM_ARCH_7__)
-#  define CPU_MODEL_NAME  "ARMv7"
-
-#elif defined(__ARM_ARCH_7A__)
-#  define CPU_MODEL_NAME  "ARMv7A"
-#  define ARM_MULTILIB_ARCH_V4
-
-#elif defined(__ARM_ARCH_7R__)
-#  define CPU_MODEL_NAME  "ARMv7R"
-
-#elif defined(__ARM_ARCH_7M__)
-#  define CPU_MODEL_NAME  "ARMv7M"
-#  define ARM_MULTILIB_ARCH_V7M
-
+#if defined(__ARM_ARCH_7M__)
+  #define CPU_MODEL_NAME "ARMv7M"
+  #define ARM_MULTILIB_ARCH_V7M
 #else
-#  error "Unsupported CPU Model"
-
+  #define CPU_MODEL_NAME "ARMv4"
+  #define ARM_MULTILIB_ARCH_V4
 #endif
 
 /* All ARM CPUs are assumed to not have floating point units */
-- 
1.7.7




More information about the devel mailing list