17 int size, assoc, M, len, multiplier;
19 cache->
ctype = (cache_type_reg & 0x1e000000U) >> 25;
20 cache->
separate = (cache_type_reg & 0x01000000U) >> 24;
22 size = (cache_type_reg & 0x1c0000) >> 18;
23 assoc = (cache_type_reg & 0x38000) >> 15;
24 M = (cache_type_reg & 0x4000) >> 14;
25 len = (cache_type_reg & 0x3000) >> 12;
28 if ((assoc != 0) || (M != 1)) {
43 size = (cache_type_reg & 0x1c0) >> 6;
44 assoc = (cache_type_reg & 0x38) >> 3;
45 M = (cache_type_reg & 0x4) >> 2;
46 len = (cache_type_reg & 0x3);
49 if ((assoc != 0) || (M != 1)) {
70 if (armv4_5_cache->
ctype == -1) {
76 (armv4_5_cache->
separate) ?
"separate caches" :
"unified cache");
78 command_print(
cmd,
"D-Cache: linelen %i, associativity %i, nsets %i, cachesize 0x%x",
84 command_print(
cmd,
"I-Cache: linelen %i, associativity %i, nsets %i, cachesize 0x%x",
int armv4_5_identify_cache(uint32_t cache_type_reg, struct armv4_5_cache_common *cache)
int armv4_5_handle_cache_info_command(struct command_invocation *cmd, struct armv4_5_cache_common *armv4_5_cache)
void command_print(struct command_invocation *cmd, const char *format,...)
size_t size
Size of the control block search area.
struct armv4_5_cachesize d_u_size
struct armv4_5_cachesize i_size
When run_command is called, a new instance will be created on the stack, filled with the proper value...