Skip to content

Commit

Permalink
microblaze: Define correct L1_CACHE_SHIFT value
Browse files Browse the repository at this point in the history
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: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed May 6, 2010
1 parent 77543ce commit 598acab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/microblaze/include/asm/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <asm/registers.h>

#define L1_CACHE_SHIFT 2
#define L1_CACHE_SHIFT 5
/* word-granular cache in microblaze */
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)

Expand Down

0 comments on commit 598acab

Please sign in to comment.