From 9dcc6837de219ebc0a357f0d2af2722c5abb6747 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 7 May 2013 12:05:43 +0200 Subject: arm: Simplify architecture selection --- cpukit/score/cpu/arm/rtems/score/arm.h | 68 +++------------------------------- 1 file changed, 5 insertions(+), 63 deletions(-) (limited to 'cpukit/score/cpu/arm/rtems/score/arm.h') 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 */ -- cgit v1.2.3