Commit 93b31732 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: define L1_CACHE_SHIFT

parent 5d7e01f8
...@@ -21,12 +21,13 @@ ...@@ -21,12 +21,13 @@
#define LG_L1_CACHE_LINE_SIZE 7 #define LG_L1_CACHE_LINE_SIZE 7
#define MAX_COPY_PREFETCH 1 #define MAX_COPY_PREFETCH 1
#else #else
#define L1_CACHE_LINE_SIZE 32 #define L1_CACHE_LINE_SIZE 32
#define LG_L1_CACHE_LINE_SIZE 5 #define LG_L1_CACHE_LINE_SIZE 5
#define MAX_COPY_PREFETCH 4 #define MAX_COPY_PREFETCH 4
#endif #endif
#define L1_CACHE_BYTES L1_CACHE_LINE_SIZE #define L1_CACHE_BYTES L1_CACHE_LINE_SIZE
#define L1_CACHE_SHIFT LG_L1_CACHE_LINE_SIZE
#define SMP_CACHE_BYTES L1_CACHE_BYTES #define SMP_CACHE_BYTES L1_CACHE_BYTES
#define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1)) #define L1_CACHE_ALIGN(x) (((x)+(L1_CACHE_BYTES-1))&~(L1_CACHE_BYTES-1))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment