summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-12 12:02:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-12 12:02:57 +0100
commite4752d1d99dab4256083d406c5ceeaf983e9fd0f (patch)
tree33971278f6c16b7345d2eb8044d91dc83426f95c /cpukit/score/cpu/powerpc/rtems
parentscore: Statically initialize TOD handler (diff)
downloadrtems-e4752d1d99dab4256083d406c5ceeaf983e9fd0f.tar.bz2
powerpc: Fix alignment for AltiVec multilibs
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/powerpc.h8
1 files 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).