diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-07 12:05:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-10 12:10:14 +0200 |
commit | 9dcc6837de219ebc0a357f0d2af2722c5abb6747 (patch) | |
tree | d7dfbdb12b14595db48f6fdc55b79a5fb71db9bb /cpukit/score/cpu/arm/rtems/score/arm.h | |
parent | score: Add CPU context validation (diff) | |
download | rtems-9dcc6837de219ebc0a357f0d2af2722c5abb6747.tar.bz2 |
arm: Simplify architecture selection
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/score/arm.h')
-rw-r--r-- | 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 8471bb49a1..91999b32ea 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 */ |