diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-12-23 11:38:34 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-09 14:05:08 +0100 |
commit | 7c16e1a5143b92228d9f3fac7fe653e5c3e4b880 (patch) | |
tree | 55eaf881a085547d6589fbe032df825b86417954 /cpukit/score/cpu/powerpc/rtems/score/powerpc.h | |
parent | powerpc: Use PPC_DEFAULT_CACHE_LINE_SIZE (diff) | |
download | rtems-7c16e1a5143b92228d9f3fac7fe653e5c3e4b880.tar.bz2 |
powerpc: Set PPC_DEFAULT_CACHE_LINE_SIZE for e6500
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score/powerpc.h')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/score/powerpc.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h index ee5484bc63..90cbbd1db3 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/powerpc.h +++ b/cpukit/score/cpu/powerpc/rtems/score/powerpc.h @@ -74,7 +74,13 @@ extern "C" { #define PPC_ALIGNMENT 8 -#define PPC_DEFAULT_CACHE_LINE_SIZE 32 +#ifdef __PPC_CPU_E6500__ +#define PPC_DEFAULT_CACHE_LINE_POWER 6 +#else +#define PPC_DEFAULT_CACHE_LINE_POWER 5 +#endif + +#define PPC_DEFAULT_CACHE_LINE_SIZE (1 << PPC_DEFAULT_CACHE_LINE_POWER) #define PPC_STRUCTURE_ALIGNMENT PPC_DEFAULT_CACHE_LINE_SIZE |