Commit 598acab4 authored by Michal Simek's avatar Michal Simek

microblaze: Define correct L1_CACHE_SHIFT value

Microblaze cacheline length is configurable and current cpu
uses two cacheline length 4 and 8.

We are taking conservative maximum value to be sure that cacheline
alignment is satisfied for all cases.

Here is the calculation for cacheline lenght 8  32bit=4Byte values
which is corresponding with SHIFT 5.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 77543ceb
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <asm/registers.h> #include <asm/registers.h>
#define L1_CACHE_SHIFT 2 #define L1_CACHE_SHIFT 5
/* word-granular cache in microblaze */ /* word-granular cache in microblaze */
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
......
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