From e4752d1d99dab4256083d406c5ceeaf983e9fd0f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 12 Jan 2016 12:02:57 +0100 Subject: powerpc: Fix alignment for AltiVec multilibs --- cpukit/score/cpu/powerpc/rtems/score/powerpc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h index c640b2f783..29469bc584 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h +++ b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h @@ -72,8 +72,6 @@ extern "C" { #define CPU_MODEL_NAME "Generic (classic FPU)" #endif -#define PPC_ALIGNMENT 8 - #ifdef __PPC_CPU_E6500__ #define PPC_DEFAULT_CACHE_LINE_POWER 6 #else @@ -136,6 +134,12 @@ extern "C" { #define PPC_MULTILIB_FPU #endif +#ifdef PPC_MULTILIB_ALTIVEC +#define PPC_ALIGNMENT 16 +#else +#define PPC_ALIGNMENT 8 +#endif + /* * Unless specified above, If the model has FP support, it is assumed to * support doubles (8-byte floating point numbers). -- cgit v1.2.3