[rtems commit] powerpc: Fix alignment for AltiVec multilibs

Sebastian Huber sebh at rtems.org
Tue Jan 12 11:04:10 UTC 2016


Module:    rtems
Branch:    master
Commit:    e4752d1d99dab4256083d406c5ceeaf983e9fd0f
Changeset: http://git.rtems.org/rtems/commit/?id=e4752d1d99dab4256083d406c5ceeaf983e9fd0f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan 12 12:02:57 2016 +0100

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 c640b2f..29469bc 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).



More information about the vc mailing list