forked from Imagelibrary/rtems
bsps/arm: Do not use __ARM_ARCH_7A__
This would lead to link-time errors in case less specialized compiler machine options are used, e.g. to run the GCC test suite.
This commit is contained in:
@@ -30,10 +30,7 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#if defined( __ARM_ARCH_7A__ )
|
||||
static arm_release_id arm_errata_get_processor_release(
|
||||
void
|
||||
)
|
||||
static inline arm_release_id arm_errata_get_processor_release(void)
|
||||
{
|
||||
const uint32_t MIDR = arm_cp15_get_id_code();
|
||||
const uint8_t REVISION = (MIDR & 0xF00000U) >> 20;
|
||||
@@ -44,14 +41,10 @@ static arm_release_id arm_errata_get_processor_release(
|
||||
PATCH_LEVEL
|
||||
);
|
||||
}
|
||||
#endif /* #if defined( __ARM_ARCH_7A__ ) */
|
||||
|
||||
#if defined( __ARM_ARCH_7A__ )
|
||||
#if ( defined( RTEMS_SMP ) )
|
||||
static bool arm_errata_is_applicable_processor_errata_764369(
|
||||
void
|
||||
)
|
||||
static bool inline arm_errata_is_applicable_processor_errata_764369(void)
|
||||
{
|
||||
#if defined(RTEMS_SMP)
|
||||
const arm_release_id RELEASE = arm_errata_get_processor_release();
|
||||
bool is_applicable = false;
|
||||
|
||||
@@ -84,16 +77,12 @@ static bool arm_errata_is_applicable_processor_errata_764369(
|
||||
}
|
||||
|
||||
return is_applicable;
|
||||
}
|
||||
#else
|
||||
#define arm_errata_is_applicable_processor_errata_764369() false
|
||||
#endif /* ( defined( RTEMS_SMP ) ) */
|
||||
#endif /* #if defined( __ARM_ARCH_7A__ ) */
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined( __ARM_ARCH_7A__ )
|
||||
static bool arm_errata_is_applicable_processor_errata_775420(
|
||||
void
|
||||
)
|
||||
static inline bool arm_errata_is_applicable_processor_errata_775420(void)
|
||||
{
|
||||
const arm_release_id RELEASE = arm_errata_get_processor_release();
|
||||
bool is_applicable = false;
|
||||
@@ -123,7 +112,6 @@ static bool arm_errata_is_applicable_processor_errata_775420(
|
||||
|
||||
return is_applicable;
|
||||
}
|
||||
#endif /* #if defined( __ARM_ARCH_7A__ ) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user