4.104.114.95
Last change
on this file since c2bb3add was
c2bb3add,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/04/08 at 16:09:07
|
2008-07-04 Matthew Riek <matthew.riek@…>
- Makefile.am, mcf532x/include/mcf532x.h, shared/cache/cache_.h: Add
cache support for 5329. Enable the cache in copyback and
write-through so we can assume that in BSP.
- mcf532x/cache/cachepd.c: New file.
|
-
Property mode set to
100644
|
File size:
999 bytes
|
Line | |
---|
1 | /* |
---|
2 | * M68K Cache Manager Support |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __M68K_CACHE_h |
---|
6 | #define __M68K_CACHE_h |
---|
7 | |
---|
8 | #if (defined(__mc68020__) && !defined(__mcpu32__)) |
---|
9 | # define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 |
---|
10 | #elif defined(__mc68030__) |
---|
11 | # define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 |
---|
12 | # define M68K_DATA_CACHE_ALIGNMENT 16 |
---|
13 | #elif ( defined(__mc68040__) || defined (__mc68060__) ) |
---|
14 | # define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 |
---|
15 | # define M68K_DATA_CACHE_ALIGNMENT 16 |
---|
16 | #elif ( defined(__mcf5200__) ) |
---|
17 | # define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 |
---|
18 | # if ( defined(__mcf528x__) ) |
---|
19 | # define M68K_DATA_CACHE_ALIGNMENT 16 |
---|
20 | # endif |
---|
21 | #elif ( defined(__mcf5300__) ) |
---|
22 | # define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 |
---|
23 | # define M68K_DATA_CACHE_ALIGNMENT 16 |
---|
24 | #endif |
---|
25 | |
---|
26 | #if defined(M68K_DATA_CACHE_ALIGNMENT) |
---|
27 | #define CPU_DATA_CACHE_ALIGNMENT M68K_DATA_CACHE_ALIGNMENT |
---|
28 | #endif |
---|
29 | |
---|
30 | #if defined(M68K_INSTRUCTION_CACHE_ALIGNMENT) |
---|
31 | #define CPU_INSTRUCTION_CACHE_ALIGNMENT M68K_INSTRUCTION_CACHE_ALIGNMENT |
---|
32 | #endif |
---|
33 | |
---|
34 | #include <libcpu/cache.h> |
---|
35 | |
---|
36 | #endif |
---|
37 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.