summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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).