comparison packages/hal/h8300/arch/current/include/hal_cache.h @ 1281:f58b62f3c85d

Apply Yoshinori Sato's H8/300 patches plus a few of my own. See the individual ChangeLogs for detail of the changes in each package.
author nickg
date Mon, 06 Oct 2003 17:28:51 +0000
parents d2c90368aeef
children 74dbf4c3f2e1
comparison
equal deleted inserted replaced
1280:8d76b6216102 1281:f58b62f3c85d
65 65
66 //----------------------------------------------------------------------------- 66 //-----------------------------------------------------------------------------
67 // Cache dimensions 67 // Cache dimensions
68 68
69 // Data cache 69 // Data cache
70 #define HAL_DCACHE_SIZE 0 // Size of data cache in bytes 70 //#define HAL_DCACHE_SIZE 0 // Size of data cache in bytes
71 #define HAL_DCACHE_LINE_SIZE 0 // Size of a data cache line 71 //#define HAL_DCACHE_LINE_SIZE 0 // Size of a data cache line
72 #define HAL_DCACHE_WAYS 0 // Associativity of the cache 72 //#define HAL_DCACHE_WAYS 0 // Associativity of the cache
73 73
74 // Instruction cache 74 // Instruction cache
75 #define HAL_ICACHE_SIZE 0 // Size of cache in bytes 75 //#define HAL_ICACHE_SIZE 0 // Size of cache in bytes
76 #define HAL_ICACHE_LINE_SIZE 0 // Size of a cache line 76 //#define HAL_ICACHE_LINE_SIZE 0 // Size of a cache line
77 #define HAL_ICACHE_WAYS 0 // Associativity of the cache 77 //#define HAL_ICACHE_WAYS 0 // Associativity of the cache
78 78
79 #define HAL_DCACHE_SETS (HAL_DCACHE_SIZE/(HAL_DCACHE_LINE_SIZE*HAL_DCACHE_WAYS)) 79 //#define HAL_DCACHE_SETS (HAL_DCACHE_SIZE/(HAL_DCACHE_LINE_SIZE*HAL_DCACHE_WAYS))
80 #define HAL_ICACHE_SETS (HAL_ICACHE_SIZE/(HAL_ICACHE_LINE_SIZE*HAL_ICACHE_WAYS)) 80 //#define HAL_ICACHE_SETS (HAL_ICACHE_SIZE/(HAL_ICACHE_LINE_SIZE*HAL_ICACHE_WAYS))
81 81
82 //----------------------------------------------------------------------------- 82 //-----------------------------------------------------------------------------
83 // Global control of data cache 83 // Global control of data cache
84 84
85 // Enable the data cache 85 // Enable the data cache